public HomeController() { this.unitOfWork = new UnitOfWork(); this.newsCategoryRepository = RepositoryFactory.GetRepository<INewsCategoryRepository, NewsCategory>(this.unitOfWork); this.newsRepository = RepositoryFactory.GetRepository<INewsRepository, News>(this.unitOfWork); this.deliverNoticeRepository = RepositoryFactory.GetRepository<IDeliverNoticeRepository, DeliverNotice>(this.unitOfWork); this.businessCheckNoticeRespository = RepositoryFactory.GetRepository<IBusinessCheckNoticeRepository, BusinessCheckNotice>(this.unitOfWork); this.pipeIncomeRecordRepository = RepositoryFactory.GetRepository<IPipeIncomeRecordRepository, PipeIncomeRecord>(this.unitOfWork); this.pipeNeedNoticeRepository = RepositoryFactory.GetRepository<IPipeNeedNoticeRepository, PipeNeedNotice>(this.unitOfWork); this.outgoingNoticeRepository = RepositoryFactory.GetRepository<IOutgoingNoticeRepository, OutgoingNotice>(this.unitOfWork); this.normalCheckTaskRepository = RepositoryFactory.GetRepository<INormalCheckTaskRepository, NormalCheckTask>(this.unitOfWork); this.ReturningNoticeRepository = RepositoryFactory.GetRepository<IReturningNoticeRepository, ReturningNotice>(this.unitOfWork); }
public BusinessCheckNoticeController() { unitOfWork = new UnitOfWork(); repository = RepositoryFactory.GetRepository<IBusinessCheckNoticeRepository, BusinessCheckNotice>(unitOfWork); }