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