示例#1
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            // create var to hold results
            // use the repository
            var commandItems = _repository.GetAppCommands();

            // return list of commands back and status 200 OK
            return(Ok(commandItems));
        }
示例#2
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            var commandItems = _repository.GetAppCommands();

            return(Ok(commandItems));
        }