private void ExecuteAddScheduledMaintenance(object parameter) { MaintenanceRecordModel mm = new MaintenanceRecordModel() { AssetID = Asset.ID, Completed = false, Name = string.Empty, ScheduledMaintenanceDate = DateTime.Now }; mm.ID = AddScheduledMaintenance(mm); ScheduledMaintenance.Add(mm); }
private void ExecuteAddMaintenance(object parameter) { MaintenanceRecordModel mm = new MaintenanceRecordModel() { AssetID = Asset.ID, Name = string.Empty, MaintenanceDate = DateTime.Now, MaintainedBy = string.Empty, Completed = true }; mm.ID = AddMaintenanceRecord(mm); MaintenanceRecords.Add(mm); }