public static IMeasurementRepository CreateMeasurementRepository(AirMonitorDbContext db) { MeasurementDao dao = MeasurementDao.Factory.Create(db); IMeasurementRepository repository = MeasurementRepository.Factory.Create(dao); return(repository); }
public static IInstallationRepository CreateInstallationRepository(AirMonitorDbContext db) { InstallationDao dao = InstallationDao.Factory.Create(db); IInstallationRepository repository = InstallationRepository.Factory.Create(dao); return(repository); }