public ActionResult CreateDocPreparer(string id, Guid projId) { Models.DocPreparer model = new Models.DocPreparer(); model.EntityDocPreparer = new DocumentPreparer(); model.EntityDocPreparer.DocumentCode = id; model.EntityDocPreparer.ProjectDonorId = projId; List <StaffView> staffList = staffService.GetStaffByCountryProgramme(countryProg.Id); model.StaffList = new SelectList(staffList, "StaffId", "StaffName"); return(View(model)); }
public ActionResult SaveDocPreparer(Models.DocPreparer model) { staffService.InsertDocPreparer(model.EntityDocPreparer); return(DocPrepList(model.EntityDocPreparer.ProjectDonorId)); }