Example #1
0
 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());
 }