Пример #1
0
        public ActionResult <IEnumerable <Command> > GetAllCommands()
        {
            // Using data in internal format.
            var commandItems = _repository.GetAppComands();

            return(Ok(commandItems));
        }
Пример #2
0
 public ActionResult <IEnumerable <Command> > GetAllCommands()
 {
     return(Ok(_repository.GetAppComands()));
 }