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)); }
public OverDetailController(IOverDetailService overDetailService, IUnitOfWorkAsync unitOfWorkAsync) { _overDetailService = overDetailService; _unitOfWorkAsync = unitOfWorkAsync; }