public async Task <IActionResult> AddOrUpdateMHorizontalMarksAsync(
            [FromBody] MarksForm <MHorizontalAttempt> marksForm,
            CancellationToken ct)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(new ApiError(ModelState)));
            }

            //if (!await _authService.CanEditEvent(marksForm.eventId, User))
            //    return BadRequest("Not authorized to post marks");

            var entry = await _entryService.GetEntryByIdAsync(marksForm.entryId, ct);

            if (entry == null)
            {
                return(NotFound("Entry not found"));
            }

            var evt = await _eventService.GetEventByIdAsync(marksForm.eventId, ct);

            if (evt.Params.EventType[0] != 'H')
            {
                return(BadRequest("Event type not horizontal"));
            }
            if (evt.Params.MeasurementType[0] != 'M')
            {
                return(BadRequest("Measurement type not metric"));
            }

            await _markService.AddOrUpdateMHorizontalMarksAsync(marksForm, ct);

            return(Created(Url.Link(nameof(MarksController.GetMarksByEntryAsync),
                                    new { marksForm.entryId }),
                           null));
        }