public HttpResponseMessage UpdateSingleLargeTextModel(int id, [FromBody] SingleLargeTextModel singleLargeTextModel) { if (singleLargeTextModel == null) { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "data with Id = " + id.ToString() + "not found to update")); } try { commonGateway.UpdateSingleLargeTextModel(singleLargeTextModel); return(Request.CreateResponse(HttpStatusCode.OK, singleLargeTextModel)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); } }