Пример #1
0
        public async Task <ActionResult <Command> > GetById(Guid id)
        {
            var result = await _services.GetById(id);

            if (result == null)
            {
                return(NotFound("Command does not exist"));
            }
            return(Ok(_converter.ToCommandResponse(result)));
        }