예제 #1
0
 public CompaniesController(ICompanyService companyService, ICompanyTypeService companyTypeService, ICityService cityService, ICountryService countryService, IRegionService regionService, ISectorService sectorService)
 {
     this.companyService     = companyService;
     this.companyTypeService = companyTypeService;
     this.cityService        = cityService;
     this.countryService     = countryService;
     this.regionService      = regionService;
     this.sectorService      = sectorService;
 }
        public DocumentPermissionManageModel()
        {
            _companyService     = HostContainer.GetInstance <ICompanyService>();
            _companyTypeService = HostContainer.GetInstance <ICompanyTypeService>();
            _userGroupService   = HostContainer.GetInstance <IUserGroupService>();
            _documentService    = HostContainer.GetInstance <IDocumentService>();

            Groups       = _userGroupService.GetUserGroups();
            Companies    = _companyService.GetCompanies();
            CompanyTypes = _companyTypeService.GetCompanyTypes();
        }
예제 #3
0
        public AssociateManageModel()
        {
            _associateTypeService = HostContainer.GetInstance <IAssociateTypeService>();
            _companyTypeService   = HostContainer.GetInstance <ICompanyTypeService>();
            _locationService      = HostContainer.GetInstance <ILocationService>();
            var countryService = HostContainer.GetInstance <ICountryService>();

            AssociateTypeIds = new List <int>();
            AssociateTypes   = _associateTypeService.GetAssociateTypes();

            LocationIds = new List <int>();
            Locations   = _locationService.GetLocations();

            CompanyTypeIds = new List <int>();
            CompanyTypes   = _companyTypeService.GetCompanyTypes();

            Countries = countryService.GetCountries();
            States    = EnumUtilities.GenerateSelectListItems <CommonEnums.AustraliaState>(GenerateEnumType.DescriptionValueAndDescriptionText);
            Genders   = EnumUtilities.GenerateSelectListItems <UserEnums.Gender>(GenerateEnumType.DescriptionValueAndDescriptionText);
        }
예제 #4
0
        //public AccountController()
        //    : this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ObjectContext())))
        //{


        //}

        public AccountController(ICountryService countryService,
            UserManager<ApplicationUser> userManager,
             RoleManager<IdentityRole> roleManager,
             ICarSellerTypeService carSellerTypeService,
            IAspNetUsersAdditionalInfoService aspNetUsersAdditionalInfoService,
            ISellerPersonalInfoService sellerPersonalInfoService,
            ICompanyTypeService companyTypeService,
            ISellerCompanyInfoService sellerCompanyInfoService,
            ISellerCompanyLogoService sellerCompanyLogoService
            )
        {

            UserManager = userManager;
            RoleManager = roleManager;
            _countryService = countryService;
            _carSellerTypeService = carSellerTypeService;
            _aspNetUsersAdditionalInfoService = aspNetUsersAdditionalInfoService;
            _sellerPersonalInfoService = sellerPersonalInfoService;
            _companyTypeService = companyTypeService;
            _sellerCompanyInfoService = sellerCompanyInfoService;
            _sellerCompanyLogoService = sellerCompanyLogoService;
        }
예제 #5
0
 public DelteCompanyTypeCommandHandler(ICompanyTypeService companyTypeService, ICompanyTypeMapper companyTypeMapper, ILogger <IRequest> logger)
 {
     _companyTypeService = companyTypeService;
     _companyTypeMapper  = companyTypeMapper;
     _logger             = logger;
 }
 public CompanyTypeController(ICompanyTypeService companyTypeService)
 {
     _companyTypeService = companyTypeService;
 }
예제 #7
0
 /// <summary>
 /// Constructor CompanyTypeController
 /// </summary>
 /// <param name="itemService"></param>
 /// <param name="mediator"></param>
 public CompanyTypeController(ICompanyTypeService itemService, IMediator mediator)
 {
     _itemService = itemService;
     _mediator    = mediator;
 }
예제 #8
0
 /// <summary>
 /// GetCompanyTypeQueryHandler
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="companyTypeService"></param>
 public GetCompanyTypeQueryHandler(ILogger <IRequest> logger, ICompanyTypeService companyTypeService)
 {
     _logger             = logger;
     _companyTypeService = companyTypeService;
 }
 public ContactSearchDetailsModel()
 {
     _contactGroupService = HostContainer.GetInstance <IContactGroupService>();
     _companyTypeService  = HostContainer.GetInstance <ICompanyTypeService>();
     CompanyTypes         = new List <string>();
 }
예제 #10
0
 public CompanyTypesController(ICompanyTypeService companyTypeService)
 {
     this.companyTypeService = companyTypeService;
 }