/// <summary> /// constructor /// </summary> /// <param name="localizer">inject interface IStringLocalizer</param> /// <param name="service">inject interface ICatCommodityGroupService</param> /// <param name="iMapper">inject interface IMapper</param> /// <param name="user"></param> public CatCommodityGroupController(IStringLocalizer <LanguageSub> localizer, ICatCommodityGroupService service, IMapper iMapper, ICurrentUser user) { stringLocalizer = localizer; catComonityGroupService = service; mapper = iMapper; currentUser = user; }
public CatCommodityService(IContextBase <CatCommodity> repository, ICacheServiceBase <CatCommodity> cacheService, IMapper mapper, IStringLocalizer <CatalogueLanguageSub> localizer, ICatCommodityGroupService commodityGroupService, ICurrentUser user) : base(repository, cacheService, mapper) { stringLocalizer = localizer; SetChildren <CsMawbcontainer>("Id", "CommodityId"); catCommodityGroupService = commodityGroupService; currentUser = user; }