コード例 #1
0
 public void registerNewEmail(string email, string password)
 {
     dbContext.CttUser.Add(new CttUser
     {
         Email = email,
         Pass  = password
     });
     dbContext.SaveChanges();
 }
コード例 #2
0
        public Flight createFlight(Flight flight)
        {
            dbContext.Flight.Add(flight);
            dbContext.SaveChanges();

            return(getFlight(flight.ReservationCode));
        }
コード例 #3
0
 public Refund createRefund(Refund postedRefund)
 {
     dbContext.Refund.Add(postedRefund);
     dbContext.SaveChanges();
     return(postedRefund);
 }