示例#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)));
        }