public void Update(MaintenanceType maintenanceType)
        {
            MaintenanceType rType = GetMaintenanceTypeById(maintenanceType.ID);

            if (rType == null)
                return;

            rType.Title = maintenanceType.Title;
            rType.Description = maintenanceType.Description;
            db.SaveChanges();
        }
 public bool CreateMaintenanceType(MaintenanceType maintenanceType)
 {
     try
     {
         _maintenanceTypeRepository.Insert(maintenanceType);
         return true;
     }
     catch (Exception ex)
     {
         HandleLogging.LogMessage(ex, "CreateMaintenanceType", 1, WebOperationContext.Current);
         return false;
     }
 }
 public void Insert(MaintenanceType maintenanceType)
 {
     db.MaintenanceTypes.Add(maintenanceType);
     db.SaveChanges();
 }
 public bool CreateMaintenanceType(MaintenanceType maintenanceType)
 {
     return new StationService().CreateMaintenanceType(maintenanceType);
 }