Пример #1
0
        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);
            }
        }
Пример #2
0
 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.");
     }
 }
Пример #3
0
 public Person GetByEmailPassword(string email, string password)
 {
     return(_personDal.Get(p => p.Email == email && p.Password == password));
 }
Пример #4
0
 public Person GetById(int Id)
 {
     return(_personDal.Get(p => p.Id == Id));
 }
Пример #5
0
 public Person GetByMail(string mail)
 {
     return(_personDal.Get(u => u.mail == mail));
 }
Пример #6
0
 public PersonModel Get(int id)
 {
     return(_personDal.Get(id));
 }
Пример #7
0
 public IDataResult <Person> GetAllByTelephoneNo(string telephoneNo)
 {
     return(new SuccessDataResult <Person>(_personDal.Get(p => p.Telephone == telephoneNo), Messages.Geted));
 }
Пример #8
0
 public Person Get(Expression <Func <Person, bool> > filter = null)
 {
     return(_personDal.Get(filter));
 }
Пример #9
0
 public Person GetById(int id)
 {
     return(_personDal.Get(x => x.PersonId == id));
 }
Пример #10
0
 public IDataResult <Person> GetPersonById(int personId)
 {
     return(new SuccessDataResult <Person>(
                _personDal.Get(p => p.PersonId == personId,
                               pi1 => pi1.ContactInfos)));
 }