public ActionResult productTypeCreate(ProductTypeViewModels data) { ProductTypeBussines.GetProductTypeResponse request = new ProductTypeBussines.GetProductTypeResponse() { ProductType = data.ProductType }; result = ProductTypeBussines.Insert.ProductType(request).Message; return(RedirectToAction("productTypeView", new { successful = true, ResultAction = "All Changes was successful" })); }
public ActionResult productTypeEdit(ProductTypeViewModels data) { if (ModelState.IsValid) { ProductTypeBussines.GetProductTypeResponse request = new ProductTypeBussines.GetProductTypeResponse() { ProductType = data.ProductType }; result = ProductTypeBussines.Update.ProductType(request).Message; } return(RedirectToAction("productTypeView", new { successful = true, ResultAction = "All Changes was successful" })); }