public HttpResponseMessage GetById(HttpRequestMessage request, int id) { return(CreateHttpResponse(request, () => { var model = _feedbackService.FindById(id); model.Status = false; _feedbackService.SaveChanges(); var responseData = Mapper.Map <Feedback, FeedbackViewModel>(model); var response = request.CreateResponse(HttpStatusCode.OK, responseData); return response; })); }