public ActionResult SaveCC(CompletionCertificate model) { model.CountryProgrammeId = countryProg.Id; model.PreparedBy = currentStaff.Id; model.PreparedOn = DateTime.Now; model.Id = Guid.NewGuid(); ccService.SaveCompletionC(model); return(ViewCCDetails(model.Id)); }
public ActionResult LoadCC() { var model = new CompletionCertificate() { StaffList = new SelectList(staffService.GetStaffByCountryProgramme(countryProg.Id), "StaffId", "StaffName"), Offices = new SelectList(subOfficeService.GetCountrySubOffices(countryProg.Id), "Id", "Name"), PurchaseOrders = new SelectList(ccService.GetGRNPurchaseOrders(), "Id", "RefNumber") }; model.RefNumber = string.Format("--{0}--", Resources.Global_String_NewCC); model.PreparedOn = DateTime.Now; return(View("LoadCC", model)); }