Exemplo n.º 1
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            var commandItems = _repository.GetAppCommands();

            return(Ok(commandItems));
            //use ok to return ok 200
        }
Exemplo n.º 2
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            //variable to hold results
            var commandItems = _repository.GetAppCommands();

            return(Ok(commandItems));
        }
Exemplo n.º 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)));
        }
Exemplo n.º 4
0
 public ActionResult <IEnumerable <Command> > GetAllCommands()
 {
     return(Ok(_repository.GetAppCommands()));
 }
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            var commands = _repo.GetAppCommands();

            return(Ok(commands));
        }
Exemplo n.º 6
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = _repository.GetAppCommands();

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