public async Task <DALProductDTO> AddAsync(DALProductDTO dto) { var product = ProductMapper.FromDAL(dto); product = (await RepoDbSet.AddAsync(product)).Entity; if (product == null) { return(null); } await RepoDbContext.Entry(product).Reference(p => p.ProductName).LoadAsync(); await RepoDbContext.Entry(product.ProductName).Collection(name => name.Translations).LoadAsync(); await RepoDbContext.Entry(product).Reference(p => p.ProductDescription).LoadAsync(); await RepoDbContext.Entry(product.ProductDescription).Collection(desc => desc.Translations).LoadAsync(); return(ProductMapper.FromDomain(product)); }