public async Task <IActionResult> Add([FromBody] CreateActivityModel activity) { var(_, isFailure, result, error) = await _activitiesService.Add(activity); if (isFailure) { return(BadRequest(error)); } return(Created(result.Id.ToString(), result)); }