public MyScheduleController() { var _unitOfWork = new UnitOfWork(); _myScheduleService = new MyScheduleService(_unitOfWork); _profileService = new ProfileService(_unitOfWork); _accountService = new AccountService(_unitOfWork); _roleCheckingService = new RoleCheckingService(_unitOfWork); _scheduleControlService = new ScheduleControlService(_unitOfWork); }
public MyScheduleController(IMyScheduleService myScheduleService) { _myScheduleService = myScheduleService; }