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")); }
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")); }