private IEnumerable <Event> Handle(MaintenanceJobFinished e) { MaintenanceJob job = Jobs.FirstOrDefault(j => j.Id == e.JobId); job.Finish(e.StartTime, e.EndTime, e.Notes); return(new Event[] { e }); }
private void Handle(MaintenanceJobFinished e) { MaintenanceJob job = Jobs.FirstOrDefault(j => j.Id == e.JobId); job.Finish(e.StartTime, e.EndTime, e.Notes); }