public async Task CreateProduct(ProductDto product) { var productActor = ProductActorFactory.GetProductActor(new ActorId(product.Id)); await productActor.CreateProduct(product); await AddIdToState(product.Id); }
public Task <ProductDto> ProductById(Guid id) { var productActor = ProductActorFactory.GetProductActor(new ActorId(id)); return(productActor.RetrieveProduct()); }