public HttpResponseMessage Vote([FromBody] VoteModel model) { return SafeAction(() => { IDelightServices service = new DelightServices(); int remainingPoints = service.Vote(User.Identity.Name, model.ProductId, model.Points); var response = Request.CreateResponse<int>(HttpStatusCode.OK, remainingPoints); return response; }, model); }