public ActionResult DeleteConfirmed(int id) { var entity = _barService.GetById(id); if (entity != null) { _barService.Remove(entity); } Success($"<strong>{entity.DisplayName} - {entity.BarNumber}</strong> was successfully deleted."); return(RedirectToAction("Index")); }