Esempio n. 1
0
        public ActionResult <IEnumerable <Command> > GetAllComands()
        {
            var commandItens = _repository.GetAppCommands();

            return(Ok(commandItens));
        }
Esempio n. 2
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = repository.GetAppCommands();

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