public PartialViewResult Deletetype(int id) { ProductManagement.Models.Typeprofil type = new ProductManagement.Models.Typeprofil(); ViewBag.msg = type.Delete(id); ViewBag.Listtype = type.List(); return(PartialView("_Listtype")); }
public ActionResult Save(ProductManagement.Models.Typeprofil type) { if (type.Id != 0) { type.Update(); } else { type.Add(); } return(RedirectToAction("Index")); }
public PartialViewResult Detailtype(int id) { ProductManagement.Models.Typeprofil type = new ProductManagement.Models.Typeprofil(); type.Affiche(id); return(PartialView("_Addtype", type)); }
// GET: Typeprofil public ActionResult Index() { ProductManagement.Models.Typeprofil type = new ProductManagement.Models.Typeprofil(); ViewBag.Listtype = type.List(); return(View()); }