Пример #1
0
        public Borrower searchBorrowerByEmailInDataBase(string email)
        {
            var queryResult = (from bo in db.borrowers
                               where bo.Email == email
                               select bo).Single();

            Borrower borrower = new Borrower();
            borrower.Adresse = queryResult.Adresse;
            borrower.Email = queryResult.Email;
            borrower.FirstNameBorrower = queryResult.FirstNameBorrower;
            borrower.Gsm = queryResult.GSM;
            borrower.NameBorrower = queryResult.NameBorrower;
            borrower.NumTelephone = queryResult.NumTelephone;
            borrower.Password = queryResult.Password;

            return borrower;
        }
Пример #2
0
 public Reservation()
 {
     borrower = new Borrower();
 }