public HourCodeService(IHourGlassRepo repo) { _repo = repo; HourCodes = new ObservableCollection <HourCode>(); foreach (var hourCode in repo.GetAll <HourCode>()) { HourCodes.Add(hourCode); } }
public HourCodeService(IHourGlassRepo repo) { _repo = repo; HourCodes = new ObservableCollection<HourCode>(); foreach (var hourCode in repo.GetAll<HourCode>()) { HourCodes.Add(hourCode); } }
public WeekService(IHourGlassRepo repo, IDateProvider dateProvider) { _repo = repo; _dateProvider = dateProvider; }