public void Update(StationMaintenance stationMaintenance)
        {
            StationMaintenance rMaintenance = GetStationMaintenanceById(stationMaintenance.ID);

            if (rMaintenance == null)
                return;

            rMaintenance.ExpectedOperationalDate = stationMaintenance.ExpectedOperationalDate;
            rMaintenance.IsActive = stationMaintenance.IsActive;
            db.SaveChanges();
        }
 public bool CreateStationMaintenance(StationMaintenance stationMaintenance)
 {
     try
     {
         _stationMaintenanceRepository.Insert(stationMaintenance);
         return true;
     }
     catch (Exception ex)
     {
         HandleLogging.LogMessage(ex, "CreateStationMaintenance", 1, WebOperationContext.Current);
         return false;
     }
 }
 public void Insert(StationMaintenance stationMaintenance)
 {
     db.StationMaintenances.Add(stationMaintenance);
     db.SaveChanges();
 }
 public bool CreateStationMaintenance(StationMaintenance stationMaintenance)
 {
     return new StationService().CreateStationMaintenance(stationMaintenance);
 }