public void Delete(Guid id) { foreach (var option in _prodRepo.GetNewProductOptions().WhereProdIdIs(id.ToString()).Items) { _dbHandler.Execute <Guid, IDbResult>("DeleteProductOp", option.Id); } _dbHandler.Execute <Guid, IDbResult>("DeleteProduct", id); }
public IProductOptions GetOptions(Guid productId) { return(_prodRepo.GetNewProductOptions().WhereProdIdIs(productId.ToString())); }