コード例 #1
0
ファイル: CommandsController.cs プロジェクト: caio27/webapi
        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));
        }