public void registerNewEmail(string email, string password) { dbContext.CttUser.Add(new CttUser { Email = email, Pass = password }); dbContext.SaveChanges(); }
public Flight createFlight(Flight flight) { dbContext.Flight.Add(flight); dbContext.SaveChanges(); return(getFlight(flight.ReservationCode)); }
public Refund createRefund(Refund postedRefund) { dbContext.Refund.Add(postedRefund); dbContext.SaveChanges(); return(postedRefund); }