Exemplo n.º 1
0
        public ActionResult VerifyCategory(int id, int status)
        {
            bool isSuccess = _categoryService.VerifyCategory(id, status);

            if (!isSuccess)
            {
                ModelState.AddModelError("ServerError", "Delete product fail!");
            }

            return(RedirectToAction("Categories"));
        }