public HttpResponseMessage GetAvailablePoints() { return SafeAction(() => { IDelightServices service = new DelightServices(); int availablePoints = service.GetAvailablePoints(User.Identity.Name); var response = Request.CreateResponse<int>(HttpStatusCode.OK, availablePoints); return response; }); }