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")); }
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)); }