public async Task <IActionResult> AddMeetAsync( [FromBody] MeetForm meetForm, CancellationToken ct) { if (!ModelState.IsValid) { return(BadRequest(new ApiError(ModelState))); } var meetId = await _meetService.CreateMeetAsync( meetForm.MeetName, meetForm.MeetDate, meetForm.MeetLocation, meetForm.MeasurementType, ct); return(Created( Url.Link(nameof(MeetsController.GetMeetByIdAsync), new { meetId }), null)); }