Ejemplo n.º 1
0
 public void registerNewEmail(string email, string password)
 {
     dbContext.CttUser.Add(new CttUser
     {
         Email = email,
         Pass  = password
     });
     dbContext.SaveChanges();
 }
Ejemplo n.º 2
0
        public Flight createFlight(Flight flight)
        {
            dbContext.Flight.Add(flight);
            dbContext.SaveChanges();

            return(getFlight(flight.ReservationCode));
        }
Ejemplo n.º 3
0
 public Refund createRefund(Refund postedRefund)
 {
     dbContext.Refund.Add(postedRefund);
     dbContext.SaveChanges();
     return(postedRefund);
 }