public ActionResult DeleteConfirmed(int id) { if (Brands.Destroy(id)) { return(RedirectToAction("Index")); } ViewBag.Error = string.Join("\n", ModelState.Values.SelectMany(x => x.Errors)); return(View()); }