public HttpResponseMessage GetVote([FromBody]IdentityModel model) { return SafeAction(() => { IDelightServices service = new DelightServices(); var vote = service.GetVote(model.Id); if (vote == null) { return Request.CreateResponse(HttpStatusCode.NoContent); } var response = Request.CreateResponse<VoteDTO>(HttpStatusCode.OK, vote); return response; }, model); }