コード例 #1
0
        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"));
        }
コード例 #2
0
        public ActionResult Create()
        {
            NewType_ProduitViewModel model = new NewType_ProduitViewModel();

            return(PartialView(model));
        }