示例#1
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = _repo.GetAllComands();

            if (commandItems != null)
            {
                return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems)));
            }
            return(NotFound());
        }
示例#2
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = _repository.GetAllComands();

            return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems)));
        }