Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public Reservation()
 {
     borrower = new Borrower();
 }