예제 #1
0
 public OverController()
 {
     var db = new ApplicationContext();
     var unitOfWork = new UnitOfWork(db);
     _overDetailService = new OverDetailService(new Repository<OverDetail>(db, unitOfWork));
     _overService= new OverService(new Repository<Over>(db, unitOfWork));
 }
예제 #2
0
 public OverDetailController(IOverDetailService overDetailService, IUnitOfWorkAsync unitOfWorkAsync)
 {
     _overDetailService = overDetailService;
     _unitOfWorkAsync = unitOfWorkAsync;
 }