public OrganizationCategoriesController( IOrganizationCategoriesService organizationCategoriesService, IOrganizationCategoryService organizationCategoryService) { organizationCategoriesService.RequestContext = System.Web.HttpContext.Current.ToRequestContext(); OrganizationCategoriesService = organizationCategoriesService; organizationCategoryService.RequestContext = System.Web.HttpContext.Current.ToRequestContext(); OrganizationCategoryService = organizationCategoryService; }
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; }