Exemplo n.º 1
0
        public ActionResult <IEnumerable <CommandReadDto> > getAllCommand()
        {
            var commandItems = _repo.getAllCommand();

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