public IHttpActionResult Insert([FromBody] UserPoint userPoint)
 {
     if (_userPointService.isRating(userPoint.ReferenceByUserId, userPoint.OrderItemId))
     {
         return(Ok(JsonStatus.CustomMessage(false, null, "Already rating for this order item")));
     }
     else
     {
         return(Ok(_userPointService.Insert(userPoint) ? JsonStatus.SaveSuccess(userPoint) : JsonStatus.SaveFaild()));
     }
 }
 public IHttpActionResult isExist(int customerId, int orderItemId)
 {
     if (_userPointService.isRating(customerId, orderItemId))
     {
         return(Ok(JsonStatus.CustomMessage(true, true, "Already rating for this order item")));
     }
     else
     {
         return(Ok(JsonStatus.CustomMessage(false, false, "Not Rated")));
     }
 }