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