public ActionResult ItemsEdit(ItemModel model) { _employeesHelper.EditProduct(model, Request.Files); TempData["Alert"] = EmployeeAlert.SetAlert(EmployyeAlerts.Succes, "Poprawnie zmodyfikowano produkt!"); return RedirectToAction("ItemsManagment"); }
public ActionResult ItemAdd(ItemModel model, List<HttpPostedFileBase> fileUpload) { _employeesHelper.AddProduct(model, fileUpload); TempData["Alert"] = EmployeeAlert.SetAlert(EmployyeAlerts.Succes, "Poprawnie dodano produkt!"); return RedirectToAction("ItemsManagment"); }