Beispiel #1
0
 public ActionResult Edit(ArticleBLL articleUpdate)
 {
     try
     {
         if (!ModelState.IsValid)
         {
             return(View(articleUpdate));
         }
         using (ContextBLL dtr = new ContextBLL())
         {
             dtr.ArticlesUpdateJust(articleUpdate);
         }
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         Logger.Log(ex);
         return(View("Error", ex));
     }
 }