コード例 #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
ファイル: PersonManager.cs プロジェクト: ogulcanakca/ELibrary
 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)));
 }