public UserController(AddUserCommand addUserCommand
                              , EditUserCommand editUserCommand
                              , DeleteUserCommand deleteUserCommand
                              , GetAdminAppUserByIdQuery getAdminAppUserByIdQuery
                              , EditOdsInstanceRegistrationForUserCommand editOdsInstanceRegistrationForUserCommand
                              , EditUserRoleCommand editUserRoleCommand
                              , GetRoleForUserQuery getRoleForUserQuery
                              , IGetOdsInstanceRegistrationsByUserIdQuery getOdsInstanceRegistrationsByUserIdQuery
                              , IGetOdsInstanceRegistrationsQuery getOdsInstanceRegistrationsQuery
                              , ITabDisplayService tabDisplayService
                              , SignInManager <AdminAppUser> signInManager
                              , UserManager <AdminAppUser> userManager
                              )
        {
            _addUserCommand           = addUserCommand;
            _editUserCommand          = editUserCommand;
            _deleteUserCommand        = deleteUserCommand;
            _getAdminAppUserByIdQuery = getAdminAppUserByIdQuery;
            _editOdsInstanceRegistrationForUserCommand = editOdsInstanceRegistrationForUserCommand;
            _editUserRoleCommand = editUserRoleCommand;
            _getRoleForUserQuery = getRoleForUserQuery;
            _getOdsInstanceRegistrationsByUserIdQuery = getOdsInstanceRegistrationsByUserIdQuery;
            _getOdsInstanceRegistrationsQuery         = getOdsInstanceRegistrationsQuery;
            _tabDisplayService = tabDisplayService;

            SignInManager = signInManager;
            UserManager   = userManager;
        }
 public OdsInstancesController(IMapper mapper
                               , RegisterOdsInstanceCommand registerOdsInstanceCommand
                               , DeregisterOdsInstanceCommand deregisterOdsInstanceCommand
                               , IGetOdsInstanceRegistrationsByUserIdQuery getOdsInstanceRegistrationsByUserIdQuery
                               , IGetOdsInstanceRegistrationsQuery getOdsInstanceRegistrationsQuery
                               , AdminAppUserContext userContext)
 {
     _mapper = mapper;
     _registerOdsInstanceCommand               = registerOdsInstanceCommand;
     _deregisterOdsInstanceCommand             = deregisterOdsInstanceCommand;
     _getOdsInstanceRegistrationsByUserIdQuery = getOdsInstanceRegistrationsByUserIdQuery;
     _getOdsInstanceRegistrationsQuery         = getOdsInstanceRegistrationsQuery;
     _userContext = userContext;
 }
 public OdsInstancesController(
     RegisterOdsInstanceCommand registerOdsInstanceCommand
     , DeregisterOdsInstanceCommand deregisterOdsInstanceCommand
     , IGetOdsInstanceRegistrationsByUserIdQuery getOdsInstanceRegistrationsByUserIdQuery
     , IGetOdsInstanceRegistrationsQuery getOdsInstanceRegistrationsQuery
     , AdminAppUserContext userContext
     , BulkRegisterOdsInstancesCommand bulkRegisterOdsInstancesCommand
     , GetCurrentSchoolYearQuery getCurrentSchoolYear)
 {
     _registerOdsInstanceCommand               = registerOdsInstanceCommand;
     _deregisterOdsInstanceCommand             = deregisterOdsInstanceCommand;
     _getOdsInstanceRegistrationsByUserIdQuery = getOdsInstanceRegistrationsByUserIdQuery;
     _getOdsInstanceRegistrationsQuery         = getOdsInstanceRegistrationsQuery;
     _userContext = userContext;
     _bulkRegisterOdsInstancesCommand = bulkRegisterOdsInstancesCommand;
     _getCurrentSchoolYear            = getCurrentSchoolYear;
 }