Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Edit([Bind(Include = "ID,imię,nazwisko,data_urodzenia,email,wydane_pieniądze")] Klienci klienci)
- {
- if (ModelState.IsValid)
- {
- db.Entry(klienci).State = EntityState.Modified;
- try
- {
- db.Modyfikacja(this.modyfikacja_glob, this.id_glob);
- db.SaveChanges();
- return RedirectToAction("Index");
- }
- catch (Exception e)
- {
- ViewBag.Exception2 = e.InnerException.InnerException.Message;
- ModelState.Clear();
- db = new SklepEntities();
- Klienci klienci_new = db.Kliencis.Find(klienci.ID);
- ViewBag.Exception = "Baza Danuch zwróciła wyjątek";
- return View(klienci_new);
- }
- }
- return View(klienci);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement