Exemplo n.º 1
0
        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"));
        }