public int Update_TimetablesDAL(Timetable t)
 {
     try
     {
         using (var orr = new Online_Railway_reservation_systemEntities())
         {
             orr.Configuration.ProxyCreationEnabled = false;
             orr.Update_Timetables(t.Timetable_ID, t.Departure_Date, t.Departure_Time, t.Arrival_Date, t.Arrival_Time, t.Distance, t.Train_ID);
             return 1;
         }
     }
     catch (Exception)
     {
         return 0;
     }
 }
 public int Add_Timetables(Timetable t)
 {
     TimetablesBAL timetablesBal = new TimetablesBAL();
     return timetablesBal.Add_TimetablesBAL(t);
 }
 public int Update_Timetables(Timetable t)
 {
     TimetablesBAL timetablesBal = new TimetablesBAL();
     return timetablesBal.Update_TimetablesBAL(t);
 }