示例#1
0
 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"));
 }
示例#2
0
        public ActionResult Save(ProductManagement.Models.Typeprofil type)
        {
            if (type.Id != 0)
            {
                type.Update();
            }
            else
            {
                type.Add();
            }

            return(RedirectToAction("Index"));
        }
示例#3
0
 public PartialViewResult Detailtype(int id)
 {
     ProductManagement.Models.Typeprofil type = new ProductManagement.Models.Typeprofil();
     type.Affiche(id);
     return(PartialView("_Addtype", type));
 }
示例#4
0
 // GET: Typeprofil
 public ActionResult Index()
 {
     ProductManagement.Models.Typeprofil type = new ProductManagement.Models.Typeprofil();
     ViewBag.Listtype = type.List();
     return(View());
 }