public async Task <IActionResult> Post([FromRoute] Guid activityId, [FromBody] CreateRatingModel model) { var(_, isFailure, value, error) = await _ratingsService.Add(activityId, model); if (isFailure) { return(BadRequest(error)); } return(Created(value.Id.ToString(), null)); }