public CrueltySpotCategoriesController( ICrueltySpotCategoriesService crueltySpotCategoriesService, ICrueltySpotCategoryService crueltySpotCategoryService) { var requestContext = System.Web.HttpContext.Current.ToRequestContext(); crueltySpotCategoriesService.RequestContext = requestContext; CrueltySpotCategoriesService = crueltySpotCategoriesService; crueltySpotCategoryService.RequestContext = requestContext; CrueltySpotCategoryService = crueltySpotCategoryService; }
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; }