Exemplo n.º 1
0
        public ActionResult Delete(string id)
        {
            if (id == null || !Regex.IsMatch(id, @"\d"))
            {
                return(RedirectToAction("Index", "Brand"));
            }

            var brandDao = new BrandDao();

            brandDao.Delete(Int32.Parse(id));

            ShowNotify("Delete successfully", "success");
            return(RedirectToAction("Index"));
        }