public HttpResponseMessage Left(int id, [FromBody] RequestModel request) { var status = HttpStatusCode.BadRequest; if (request != null && !string.IsNullOrWhiteSpace(request.Data)) { status = _diffService.Left(id, request.Data) ? HttpStatusCode.Created : HttpStatusCode.BadRequest; } return(Request.CreateResponse(status)); }