public consumer InsertConsumer(consumer consumer) { db.consumer.Add(consumer); db.SaveChanges(); return(db.consumer.FirstOrDefault(x => x.id == consumer.id)); }
public homeowner Inserthomeowner(homeowner homeowner) { db.homeowner.Add(homeowner); db.SaveChanges(); return(db.homeowner.FirstOrDefault(x => x.id == homeowner.id)); }
public vacationApartment InsertVacationApartment(vacationApartment vacationApartment) { db.vacationApartment.Add(vacationApartment); db.SaveChanges(); return(db.vacationApartment.FirstOrDefault(x => x.id == vacationApartment.id)); }
public order InsertOrder(order order) { db.order.Add(order); db.SaveChanges(); return(db.order.FirstOrDefault(x => x.id == x.id)); }