public ActionResult cellarAreaCrate(CellarAreaViewModels data) { CellarAreaBussines.GetCellarAreaResponse request = new CellarAreaBussines.GetCellarAreaResponse() { CellarArea = data.CellarArea }; result = CellarAreaBussines.Insert.CellarArea(request).Message; return(RedirectToAction("cellarAreaView", new { successful = true, ResultAction = "All Changes was successful" })); }
public ActionResult cellarAreaView(bool successful = false, string ResultAction = "") { ViewBag.Title = "Department"; ViewBag.successful = successful; ViewBag.Message = ResultAction; var BussinesData = CellarAreaBussines.Select.GetCellarAreaList(); var model = new CellarAreaViewModels() { Error = BussinesData.Error, CellarAreaList = BussinesData.CellarAreaList }; return(View(model)); }
public ActionResult cellarAreaUpdate(int id) { ViewBag.Title = "Update Department"; ViewBag.Message = ""; CellarAreaBussines.GetCellarAreaRequest request = new CellarAreaBussines.GetCellarAreaRequest() { CellarAreaID = id }; CellarArea C = CellarAreaBussines.Select.GetCellarArea(request).CellarArea; var model = new CellarAreaViewModels() { CellarArea = C }; return(PartialView(model)); }