public HttpResponseMessage UpdatePosItems([FromBody] clspos request) { LoggerFactory.LoggerInstance.LogDebug("Request Started for : " + request.PosID + "POS ID :" + request.PosID); HttpResponseMessage response = new HttpResponseMessage(); try { PosService objComService = new PosService(); var objResponse = objComService.UpdatePos(request); if (objResponse != null && objResponse.ToString() != "") { response = Request.CreateResponse(HttpStatusCode.OK, objResponse); LoggerFactory.LoggerInstance.LogDebug("Request End for : " + request.PosID + " POS ID:" + request.PosID); } else { response = Request.CreateErrorResponse(HttpStatusCode.NotFound, "No detail found for Pos Item ID : " + request.PosID + "."); } } catch (Exception ex) { LoggerFactory.LoggerInstance.LogException(ex); response = Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "Error occured while getting Pos ITEM Id " + request.PosID + "."); } return(response); }