示例#1
0
 public ActionResult Create(Error @error)
 {
     if (ModelState.IsValid)
     {
         errorService.Insert(@error);
         errorService.Commit();
         SuccessMessage(FormMessages.SaveSuccess);
         return(RedirectToAction("Index"));
     }
     return(View(@error));
 }