public HttpResponseMessage GetAllVotedPoints() { return SafeAction(() => { IDelightServices service = new DelightServices(); int allPoints = service.GetAllVotedPoints(); var response = Request.CreateResponse<int>(HttpStatusCode.OK, allPoints); return response; }); }