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; }
public Reservation() { borrower = new Borrower(); }