Пример #1
0
 public ActionResult Edit(ORM.Pictures pictures)
 {
     try
     {
         if (ModelState.IsValid)
         {
             _repository.UpdatePicture(pictures.ToBllPicture());
             return RedirectToAction("Index");
         }
         ModelState.AddModelError("", "Произошла ошибка!");
         return View(pictures);
     }
     catch (Exception exception)
     {
         return PartialView("_Error", exception);
     }
 }