public void Approved(PurchaseOrderDTO entry) { PurchaseOrder po = new PurchaseOrder(); po.No = entry.No; po.Approved = entry.Approved; poRepo.Approved(po); }