Exemplo n.º 1
0
 public bool CheckExistingAccount(string username)
 {
     using (var db = new EntityContext())
     {
         return(_user.GetAll(db).Any(u => u.Username == username));
     }
 }