Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public IProductOptions GetOptions(Guid productId)
 {
     return(_prodRepo.GetNewProductOptions().WhereProdIdIs(productId.ToString()));
 }