public void Enrich(IHalResponseBuilder halResponseBuilder, ProductAggregate product) { if (halResponseBuilder == null) { throw new ArgumentNullException(nameof(halResponseBuilder)); } if (product == null) { throw new ArgumentNullException(nameof(product)); } halResponseBuilder.AddEmbedded(e => e.AddObject(_responseBuilder.GetProduct(product), (l) => { l.AddOtherItem("shop", new Dtos.Link("/" + Constants.RouteNames.Shops + "/" + product.ShopId)).AddSelf(Constants.RouteNames.Products + "/" + product.Id); })); }