示例#1
0
        public ActionResult Update(Models.CatalogModels.CatalogEdit model)
        {
            CatalogManager catManager = new CatalogManager();

            catManager.UpdateCatalog(new Catalog {
                Description = model.Description, Id = model.Id, Code = model.Code
            });
            return(RedirectToAction("Index"));
        }
示例#2
0
        public ActionResult Edit(int Id)
        {
            CatalogManager catManager = new CatalogManager();
            var            Catalog    = catManager.GetCatalog(Id);
            var            Model      = new Models.CatalogModels.CatalogEdit {
                Description = Catalog.Description,
                Id          = Catalog.Id,
                Code        = Catalog.Code
            };

            return(View(Model));
        }