示例#1
0
 public ActionResult AddPublication(Publication model)
 {
     if (ModelState.IsValid)
     {
         var response = _main.AttemptResponse(() => { return(_admin.AddPublication(model)); });
         return(RedirectToAction("Publications"));
     }
     return(RedirectToAction("Publications"));
 }