public IHttpActionResult GetByStatus(int id) { try { var identity = (ClaimsIdentity)User.Identity; var name = identity.Claims.Where(x => x.Type == ClaimTypes.Name).Single().Value; return(Ok(_business.GetByStatus(id, name))); } catch { return(BadRequest()); } }