public List<Command> GetAllCommands() { CommandQuery cq = new CommandQuery(context); return cq.GetAll().ToList(); }
public Command GetCommand(int id) { CommandQuery cq = new CommandQuery(context); return cq.GetById(id).FirstOrDefault(); }