public object GetInvoice(int id) { return(new { success = true, InvoiceMaster = new { Record = _invoiceLogic.GetInvoiceById(id), TotalRecord = 1 } }); }