public ActionResult <ItemResponse <int> > Insert(ratingAddRequest req)
        {
            ActionResult result    = null;
            int          createdBy = _authService.GetCurrentUserId();

            try
            {
                int newId = _ratingsService.Insert(req, createdBy);
                ItemResponse <int> resp = new ItemResponse <int>();
                resp.Item = newId;
                result    = Created201(resp);
            }
            catch (Exception ex)
            {
                Logger.LogError(ex.ToString());
                result = StatusCode(500, new ErrorResponse(ex.Message.ToString()));
            }

            return(result);
        }
 public Data.Model.Ratings Insert([FromBody] RatingInsertRequest req)
 {
     return(_service.Insert(req));
 }