Пример #1
0
 public bool DeleteFlightReserve(FlightReserve flightReserve)
 {
     try
     {
         db.Entry(flightReserve).State = EntityState.Deleted;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
 public bool InsertFlightReserve(FlightReserve flightReserve)
 {
     try
     {
         db.FlightReserves.Add(flightReserve);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }