public CatPartnerService(IContextBase <CatPartner> repository, ICacheServiceBase <CatPartner> cacheService, IMapper mapper, IStringLocalizer <LanguageSub> localizer, ICurrentUser user, IContextBase <SysUser> sysUserRepo, ICatPlaceService place, ICatCountryService country, IContextBase <CatSaleman> salemanRepo, IOptions <WebUrl> url, IContextBase <SysOffice> officeRepo) : base(repository, cacheService, mapper) { stringLocalizer = localizer; currentUser = user; placeService = place; salemanRepository = salemanRepo; sysUserRepository = sysUserRepo; countryService = country; webUrl = url; officeRepository = officeRepo; SetChildren <CsTransaction>("Id", "ColoaderId"); SetChildren <CsTransaction>("Id", "AgentId"); SetChildren <SysUser>("Id", "PersonIncharge"); SetChildren <OpsTransaction>("Id", "CustomerId"); SetChildren <OpsTransaction>("Id", "SupplierId"); SetChildren <OpsTransaction>("Id", "AgentId"); SetChildren <CatPartnerCharge>("Id", "PartnerId"); //SetChildren<CsShippingInstruction>("Id", "Shipper"); //SetChildren<CsShippingInstruction>("Id", "Supplier"); //SetChildren<CsShippingInstruction>("Id", "ConsigneeId"); //SetChildren<CsShippingInstruction>("Id", "ActualShipperId"); //SetChildren<CsShippingInstruction>("Id", "ActualConsigneeId"); SetChildren <CsManifest>("Id", "Supplier"); SetChildren <CatSaleman>("Id", "PartnerId"); }
/// <summary> /// constructor /// </summary> /// <param name="localizer">inject IStringLocalizer</param> /// <param name="service">inject ICatCountryService serrvice</param> /// <param name="user"></param> public CatCountryController(IStringLocalizer <LanguageSub> localizer, ICatCountryService service, ICurrentUser user) { stringLocalizer = localizer; catCountryService = service; currentUser = user; }