public void EraseDataFromSaleList() { ISoldProductAccomplishedDataAccess soldProductsAccomplishedData = Factory.InstanceSoldProductAccomplishedDataAccess(); List <ISoldProductAccomplishedModel> products = soldProductsAccomplishedData.GetAll(); foreach (var product in products) { soldProductsAccomplishedData.Delete(product.ID); } }
// DELETE: api/SoldProductsAccomplished/5 public void Delete(int id) { soldProductAccomplishedData.Delete(id); }