Ejemplo n.º 1
0
        public IActionResult Edit(Category model)
        {
            if (ModelState.IsValid)
            {
                _repository.SaveCategory(model);
                return(RedirectToAction("list", new { id = "success" }));
            }

            return(View(model));
        }