示例#1
0
 public IActionResult AddParticipantInCase(ParticipantViewModel model)
 {
     if (ModelState.IsValid)
     {
         CaseUserDTO _newCaseUser = CreateCaseUser(model);
         _caseService.AddParticipant(model.CaseId, _newCaseUser);
         return(RedirectToAction("AboutCase", "Case", new { id = model.CaseId }));
     }
     return(PartialView(model));
 }