public IQueryable <ModelToken> GetTokensByTokenString(string tokenstring) { var model = new ModelToken(); return(model.Get(_ctx).Where(x => x.TokenString == tokenstring)); }
public IQueryable <ModelToken> GetTokensByTest(int testid) { var model = new ModelToken(); return(model.Get(_ctx).Where(x => x.TestID == testid)); }
public IQueryable <ModelToken> GetTokensByUsername(string username) { var model = new ModelToken(); return(model.Get(_ctx).Where(x => x.Username == username)); }
public ModelToken GetTokenByUsernameAndTest(string username, int testid) { var model = new ModelToken(); return(model.Get(_ctx).Where(x => x.Username == username).FirstOrDefault(x => x.TestID == testid)); }
public ModelToken GetToken(int tokenid) { var model = new ModelToken(); return(model.Get(_ctx).FirstOrDefault(x => x.TokenID == tokenid)); }
public IQueryable <ModelToken> ReadTokens() { var model = new ModelToken(); return(model.Get(_ctx)); }