Exemplo n.º 1
0
 public bool DeleteFlightReserve(FlightReserve flightReserve)
 {
     try
     {
         db.Entry(flightReserve).State = EntityState.Deleted;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool InsertFlightReserve(FlightReserve flightReserve)
 {
     try
     {
         db.FlightReserves.Add(flightReserve);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }