Beispiel #1
0
 public async Task adduser(contosodb newuser)
 {
     await this.contosodbTable.InsertAsync(newuser);
 }
Beispiel #2
0
 public async Task updateuserinfo(contosodb newinfo)
 {
     await this.contosodbTable.UpdateAsync(newinfo);
 }
Beispiel #3
0
        public async Task getuserinfo(contosodb authenticate)
        {
            List <contosodb> items = await contosodbTable.Where(check => check.username == authenticate.username && check.password == authenticate.password).ToListAsync();

            authenticate = items[0];
        }