Пример #1
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            var commandItems = _repository.GetAppCommands();

            return(Ok(commandItems));
            //use ok to return ok 200
        }
Пример #2
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            //variable to hold results
            var commandItems = _repository.GetAppCommands();

            return(Ok(commandItems));
        }
Пример #3
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAppCommands()
        {
            // variabila ce retine comenzile din "baza de date"
            var commandsItem = _repository.GetAppCommands();

            // 200 success
            return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandsItem)));
        }
Пример #4
0
 public ActionResult <IEnumerable <Command> > GetAllCommands()
 {
     return(Ok(_repository.GetAppCommands()));
 }
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            var commands = _repo.GetAppCommands();

            return(Ok(commands));
        }
Пример #6
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = _repository.GetAppCommands();

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