public bool Delete(int id) { try { var identity = (ClaimsIdentity)User.Identity; var name = identity.Claims.Where(x => x.Type == ClaimTypes.Name).Single().Value; return(_business.Delete(id, name).Result); } catch { return(false); } }