Exemplo n.º 1
0
 public PartialViewResult Deletetype(int id)
 {
     ProductManagement.Models.Type type = new ProductManagement.Models.Type();
     ViewBag.msg      = type.Delete(id);
     ViewBag.Listtype = type.List();
     return(PartialView("_Listtype"));
 }
Exemplo n.º 2
0
        public ActionResult Save(ProductManagement.Models.Type type)
        {
            if (type.Id != 0)
            {
                type.Update();
            }
            else
            {
                type.Add();
            }

            return(RedirectToAction("Index"));
        }
Exemplo n.º 3
0
 public PartialViewResult Detailtype(int id)
 {
     ProductManagement.Models.Type type = new ProductManagement.Models.Type();
     type.Affiche(id);
     return(PartialView("_Addtype", type));
 }
Exemplo n.º 4
0
 // GET: Typeproduct
 public ActionResult Index()
 {
     ProductManagement.Models.Type type = new ProductManagement.Models.Type();
     ViewBag.Listtype = type.List();
     return(View());
 }