示例#1
0
        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."
            }));
        }
示例#2
0
 public ActionResult AddSuppliers(SupplierDetailsModel supplierDetailsModel)
 {
     return(View(supplierDetailsModel));
 }