public OutgoingNoticeController()
        {
            this.unitOfWork = new UnitOfWork();
            this.repository = RepositoryFactory.GetRepository<IOutgoingNoticeRepository, OutgoingNotice>(unitOfWork);

            this.recordRepository =
                RepositoryFactory.GetRepository<IPipeOutgoingRecordRepository, PipeOutgoingRecord>(this.unitOfWork);
        }
Example #2
0
 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);
 }