Пример #1
0
 public ActionResult Edit(int id)
 {
     try
     {
         return(View("Create", ArticleFactory.CreateArticleViewModel(ArticleRepository.Get(id))));
     }
     catch (Exception ex)
     {
         Log.Error(ex);
         return(RedirectToAction("Index", "Error"));
     }
 }