public CrueltySpotCategoriesController(
            ICrueltySpotCategoriesService crueltySpotCategoriesService,
            ICrueltySpotCategoryService crueltySpotCategoryService)
        {
            var requestContext = System.Web.HttpContext.Current.ToRequestContext();

            crueltySpotCategoriesService.RequestContext = requestContext;
            CrueltySpotCategoriesService = crueltySpotCategoriesService;

            crueltySpotCategoryService.RequestContext = requestContext;
            CrueltySpotCategoryService = crueltySpotCategoryService;
        }
Ejemplo n.º 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;
        }