public async Task<IActionResult> GetUserAvgRatings([FromRoute] int userId) { var result = await _ratingManager.GetUserAvgRatingAsync(userId); if (!result.Success) { return BadRequest(result.Message); } return Ok(result); }
public async Task<IActionResult> GetUserAvgRatings([FromRoute] int userId) { var result = await _ratingManager.GetUserAvgRatingAsync(userId); if (!result.Success) { return BadRequest(result.Message); } return Ok(result); }