public int Add_CoachesDAL(Coach c)
 {
     try
     {
         using (var orr = new Online_Railway_reservation_systemEntities())
         {
             orr.Configuration.ProxyCreationEnabled = false;
             orr.Add_Coaches(c.Coach_Type,c.Train_ID,c.Number_Of_Seats,c.Price,c.Status);
             return 1;
         }
     }
     catch (Exception)
     {
         return 0;
     }
 }
 public int Update_Coaches(Coach c)
 {
     CoachesBAL coachesBal = new CoachesBAL();
     return coachesBal.Update_CoachesBAL(c);
 }
 public int Add_Coaches(Coach c)
 {
     CoachesBAL coachesBal = new CoachesBAL();
     return coachesBal.Add_CoachesBAL(c);
 }
 public int Update_CoachesBAL(Coach c)
 {
     CoachesDAL cdal = new CoachesDAL();
     return cdal.Update_CoachesDAL(c);
 }
 public int Add_CoachesBAL(Coach c)
 {
     CoachesDAL cdal = new CoachesDAL();
     return cdal.Add_CoachesDAL(c);
 }