Example #1
0
        public UsersController(
            IUserService userService,
            IUsersService usersService,
            IOrganizationsService organizationsService,
            IStateProvincesService stateProvincesService)
        {
            var currentRequestContext = System.Web.HttpContext.Current.ToRequestContext();

            userService.RequestContext = currentRequestContext;
            UserService = userService;

            usersService.RequestContext = currentRequestContext;
            UsersService = usersService;

            organizationsService.RequestContext = currentRequestContext;
            OrganizationsService = organizationsService;

            stateProvincesService.RequestContext = currentRequestContext;
            StateProvincesService = stateProvincesService;
        }
Example #2
0
        public CrueltyController(
            ICrueltySpotService crueltySpotService,
            ICrueltySpotsService crueltySpotsService,
            IStateProvincesService stateProvincesService,
            ICrueltySpotCategoriesService crueltySpotCategoriesService)
        {
            var currentRequestContext = System.Web.HttpContext.Current.ToRequestContext();

            crueltySpotService.RequestContext = currentRequestContext;
            CrueltySpotService = crueltySpotService;

            crueltySpotsService.RequestContext = currentRequestContext;
            CrueltySpotsService = crueltySpotsService;

            stateProvincesService.RequestContext = currentRequestContext;
            StateProvincesService = stateProvincesService;

            crueltySpotCategoriesService.RequestContext = currentRequestContext;
            CrueltySpotCategoriesService = crueltySpotCategoriesService;
        }
        public OrganizationsController(
            IOrganizationService organizationService,
            IOrganizationsService organizationsService,
            IStateProvincesService stateProvincesService,
            IOrganizationCategoriesService organizationCategoriesService)
        {
            var currentRequestContext = System.Web.HttpContext.Current.ToRequestContext();

            organizationService.RequestContext = currentRequestContext;
            OrganizationService = organizationService;

            organizationsService.RequestContext = currentRequestContext;
            OrganizationsService = organizationsService;

            stateProvincesService.RequestContext = currentRequestContext;
            StateProvincesService = stateProvincesService;

            organizationCategoriesService.RequestContext = currentRequestContext;
            OrganizationCategoriesService = organizationCategoriesService;
        }