示例#1
0
 public IActionResult MyAdministrativeCases(int id)
 {
     try
     {
         AboutCaseModel model = MyCasesAdd(id, "Административное дело");
         return(PartialView(model));
     }
     catch (ValidationException ex)
     {
         ModelState.AddModelError(ex.Property, ex.Message);
     }
     return(RedirectToAction("Index", "Home"));
 }
示例#2
0
 public IActionResult MyCivilCases(int id)
 {
     try
     {
         AboutCaseModel model = MyCasesAdd(id, "Гражданское дело");
         return(PartialView(model));
     }
     catch (ValidationException ex)
     {
         ModelState.AddModelError(ex.Property, ex.Message);
     }
     return(RedirectToAction("Index", "Home"));
 }