public async Task <IActionResult> CreateDirection([FromBody] Direction direction)
        {
            try {
                if (string.IsNullOrEmpty(direction.PatientName) || (string.IsNullOrEmpty(direction.SeatDirection) || (string.IsNullOrEmpty(direction.SeatDirection)) || (string.IsNullOrEmpty(direction.Type)) || (string.IsNullOrEmpty(direction.Status))))
                {
                    throw new ArgumentNullException();
                }

                await _registry.CreateDirection(direction);

                return(Ok("Направление успешно создано"));
            }
            catch (ArgumentNullException ex) {
                throw new ArgumentNullException("Входные параметры не заполнены", ex);
            }
            catch (Exception ex) {
                throw new Exception(ex.Message.ToString());
            }
        }