Example #1
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = _repository.GetAppCommands();

            return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems)));
        }
        public ActionResult <IEnumerable <CommadReadDto> > GetAllCommands()
        {
            var commandAll = _commandRepo.GetAppCommands();

            return(Ok(_mapper.Map <IEnumerable <CommadReadDto> >(commandAll)));
        }