コード例 #1
0
        public TimeRegistrationController(
            IRepository<MainRecord> mainRepository,
            IAuthenticationService authenticationService,
            IMembershipService membershipService,
            IOrchardServices orchardServices,
            IContentManager contentManager,
            ITimeRegistrationService timeRegistrationService)
        {
            _authenticationService = authenticationService;
            _membershipService = membershipService;
            _orchardServices = orchardServices;
            _contentManager = contentManager;
            _timeRegistrationService = timeRegistrationService;

            Logger = NullLogger.Instance;
            T = NullLocalizer.Instance;
        }
コード例 #2
0
        public TimeRegistrationController(
            IRepository <MainRecord> mainRepository,
            IAuthenticationService authenticationService,
            IMembershipService membershipService,
            IOrchardServices orchardServices,
            IContentManager contentManager,
            ITimeRegistrationService timeRegistrationService)
        {
            _authenticationService   = authenticationService;
            _membershipService       = membershipService;
            _orchardServices         = orchardServices;
            _contentManager          = contentManager;
            _timeRegistrationService = timeRegistrationService;

            Logger = NullLogger.Instance;
            T      = NullLocalizer.Instance;
        }
コード例 #3
0
 public TimeRegistrationController(ITimeRegistrationService timeRegistrationService, IMapper mapper)
 {
     _timeRegistrationService = timeRegistrationService;
     _mapper = mapper;
 }
コード例 #4
0
 public TimeRegistrationsController(ITimeRegistrationService timeRegistrationService)
 {
     _timeRegistrationService = timeRegistrationService ?? throw new ArgumentNullException(nameof(timeRegistrationService), "A valid Time Registration service must be supplied");
 }