public IActionResult UpdateRecord([FromBody] Ledger aObject) { if (aObject == null) { return(BadRequest()); } LedgerRepo.Update(aObject); return(Ok(aObject)); }