public ActionResult SaveSupplierDetails(SupplierDetailsModel supplierDetailsModel) { CropDetailsManager.SaveSupplierDetails( supplierDetailsModel.SupplierName, supplierDetailsModel.SupplierId, supplierDetailsModel.ContactNumber); return(RedirectToAction("AddSuppliers", new LeaveDashboardModel { IsRedirectedAfterSave = true, OpperationMessage = "The changes were successfully saved." })); }
public ActionResult AddSuppliers(SupplierDetailsModel supplierDetailsModel) { return(View(supplierDetailsModel)); }