예제 #1
0
        public void EraseDataFromSaleList()
        {
            ISoldProductAccomplishedDataAccess   soldProductsAccomplishedData = Factory.InstanceSoldProductAccomplishedDataAccess();
            List <ISoldProductAccomplishedModel> products = soldProductsAccomplishedData.GetAll();

            foreach (var product in products)
            {
                soldProductsAccomplishedData.Delete(product.ID);
            }
        }
예제 #2
0
 // DELETE: api/SoldProductsAccomplished/5
 public void Delete(int id)
 {
     soldProductAccomplishedData.Delete(id);
 }