public HttpResponseMessage PlaceOrder(PlaceOrderEntity PlaceOrderObj) { try { var result = _CartServices.PlaceOrder(PlaceOrderObj); if (result != null) { return(Request.CreateResponse(HttpStatusCode.OK, result)); } return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Something wrong! Please try again later.")); } catch (Exception ex) { throw; } }