public bool LoginCheck(string username, string password) { bool status = false; foreach (var v in rAl) { if (v.Username == username && v.Password == password) { CurrentUser = rAl.FirstOrDefault(ad => ad.Username == username); status = true; } } return(status); }
public void Register(RegisterAndLogin us) { registerWebApiAsync.createNewOne(us); }