public ActionResult SaveAllNewPersons(CreateRequest createRequests) { PersonRegister.Save(createRequests); var viewData = GetPersonListViewData(new SearchRequest()); return(PartialView("PersonRegisterListResult", viewData)); }
public ActionResult SavePerson(CreateRequest createRequest) { createRequest.ListOfPersons = new List <CreatedPerson>() { new CreatedPerson { FirstName = createRequest.CreatedPerson.FirstName, LastName = createRequest.CreatedPerson.LastName, PersonNumber = createRequest.CreatedPerson.PersonNumber, PersonType = createRequest.CreatedPerson.PersonType } }; PersonRegister.Save(createRequest); var viewData = GetPersonListViewData(new SearchRequest()); return(PartialView("PersonRegisterListResult", viewData)); }