Esempio n. 1
0
 public PurchaseDetails Post(PurchaseDetails purchase)
 {
     //return customer;
     if (purchase.ID == null || purchase.ID == 0)
     {
         return(_purchaseDAL.Create(purchase));
     }
     else
     {
         return(_purchaseDAL.Delete((int)purchase.ID));
     }
 }
Esempio n. 2
0
 public void Delete(Purchase entity)
 {
     _dal.Delete(entity);
 }