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)); } }
public void Delete(Purchase entity) { _dal.Delete(entity); }