public bool GetAuthentication(string newUserName, string newPassword) { var u = _personDal.Get(p => p.UserName == newUserName && p.UserPassword == newPassword); if (u != null) { return(true); } else { return(false); } }
private void CheckIfMemberExists(Person person) { if (_personDal.Get(m => m.TcNo == person.TcNo) != null) { throw new Exception("Bu kullanıcı daha Önce kayıt olmuştur."); } }
public Person GetByEmailPassword(string email, string password) { return(_personDal.Get(p => p.Email == email && p.Password == password)); }
public Person GetById(int Id) { return(_personDal.Get(p => p.Id == Id)); }
public Person GetByMail(string mail) { return(_personDal.Get(u => u.mail == mail)); }
public PersonModel Get(int id) { return(_personDal.Get(id)); }
public IDataResult <Person> GetAllByTelephoneNo(string telephoneNo) { return(new SuccessDataResult <Person>(_personDal.Get(p => p.Telephone == telephoneNo), Messages.Geted)); }
public Person Get(Expression <Func <Person, bool> > filter = null) { return(_personDal.Get(filter)); }
public Person GetById(int id) { return(_personDal.Get(x => x.PersonId == id)); }
public IDataResult <Person> GetPersonById(int personId) { return(new SuccessDataResult <Person>( _personDal.Get(p => p.PersonId == personId, pi1 => pi1.ContactInfos))); }