public ActionResult <CommandReadDto> GetCommandById(int id)
        {
            var command = _repository.GetCommandById(id);

            if (command != null)
            {
                return(Ok(_mapper.Map <CommandReadDto>(command)));
            }

            return(NotFound());
        }
Beispiel #2
0
        public ActionResult <CommandItem> GetCommandById(int id)
        {
            var command = _repository.GetCommandById(id);

            if (command == null)
            {
                return(NotFound());
            }

            return(Ok(command));
        }
Beispiel #3
0
        public ActionResult <Command> GetCommandById(int id)
        {
            var commandItem = _repository.GetCommandById(id);

            return(Ok(commandItem));
        }