public ActionResult <SuccessResponse> Update(ProductRatingUpdateRequest req) { ActionResult result = null; try { int modifiedBy = _authService.GetCurrentUserId(); _ratingsService.Update(req); SuccessResponse resp = new SuccessResponse(); result = Ok200(resp); } catch (Exception ex) { Logger.LogError(ex.ToString()); result = StatusCode(500, new ErrorResponse(ex.Message.ToString())); } return(result); }