Beispiel #1
0
        public ActionResult <CommandReadDTO> GetCommandById(int id)
        {
            var commandItem = _repository.GetCommand(id);

            if (commandItem != null)
            {
                return(Ok(_mapper.Map <CommandReadDTO>(commandItem)));;
            }
            return(NotFound());
        }