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