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