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

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

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

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

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