public ActionResult Create(NewType_ProduitViewModel model) { var newCategory = new Type_Produit(); newCategory.Type = model.Type; newCategory.Description = model.Description; newCategory.ImageURL = model.ImageURL; type_produitService.SaveType_Produit(newCategory); return(RedirectToAction("CategoryTable")); }
public ActionResult Create() { NewType_ProduitViewModel model = new NewType_ProduitViewModel(); return(PartialView(model)); }