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