/// <summary> /// Creates a new ProjectsController with the given location service. /// </summary> /// <param name="locationService">The service.</param> /// <param name="locationTypeService">The location type service.</param> /// <param name="userProvider">The user provider.</param> public LocationsController(ILocationService locationService, ILocationTypeService locationTypeService, IUserProvider userProvider) { Contract.Requires(locationService != null, "The location service must not be null."); Contract.Requires(locationTypeService != null, "The location type service must not be null."); Contract.Requires(userProvider != null, "The user provider must not be null."); this.userProvider = userProvider; this.locationService = locationService; this.locationTypeService = locationTypeService; }
public LocationManageModel() { _locationTypeService = HostContainer.GetInstance <ILocationTypeService>(); var countryService = HostContainer.GetInstance <ICountryService>(); LocationTypes = _locationTypeService.GetLocationTypes(); Countries = countryService.GetCountries(); TimeZones = TimeZoneUtilities.GetTimeZones(); States = EnumUtilities.GenerateSelectListItems <CommonEnums.AustraliaState>(GenerateEnumType.DescriptionValueAndDescriptionText); }
public LocationTypeController(ILocationTypeService locationTypeService, IUserService userService, IExceptionService exceptionService, IHostingEnvironment environment, IAttachmentTypeService attachmentTypeService, IAttachmentService attachmentService, IMemoryCache memoryCache, IMapper mapper) : base(userService, exceptionService, environment, attachmentTypeService, attachmentService, memoryCache) { _locationTypeService = locationTypeService; _mapper = mapper; }
public LocationTypeController() { _crimeLocationTypeService = new CrimeLocationTypeService(); _locationTypeService = new LocationTypeService(); }
public LocationTypesViewComponent(ILocationTypeService locationTypeService, IMapper mapper) { _locationTypeService = locationTypeService; _mapper = mapper; }
public LocationTypeController(ILocationTypeService locationTypeService) { _locationTypeService = locationTypeService; }
public LocationTypesController(ILocationTypeService locationTypeService, IMapper mapper) { _locationTypeService = locationTypeService; _mapper = mapper; }