Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public ActionResult SaveDocPreparer(Models.DocPreparer model)
 {
     staffService.InsertDocPreparer(model.EntityDocPreparer);
     return(DocPrepList(model.EntityDocPreparer.ProjectDonorId));
 }