Beispiel #1
0
 public consumer InsertConsumer(consumer consumer)
 {
     db.consumer.Add(consumer);
     db.SaveChanges();
     return(db.consumer.FirstOrDefault(x => x.id == consumer.id));
 }
Beispiel #2
0
 public homeowner Inserthomeowner(homeowner homeowner)
 {
     db.homeowner.Add(homeowner);
     db.SaveChanges();
     return(db.homeowner.FirstOrDefault(x => x.id == homeowner.id));
 }
Beispiel #3
0
 public vacationApartment InsertVacationApartment(vacationApartment vacationApartment)
 {
     db.vacationApartment.Add(vacationApartment);
     db.SaveChanges();
     return(db.vacationApartment.FirstOrDefault(x => x.id == vacationApartment.id));
 }
Beispiel #4
0
 public order InsertOrder(order order)
 {
     db.order.Add(order);
     db.SaveChanges();
     return(db.order.FirstOrDefault(x => x.id == x.id));
 }