public async Task <ActionResult> GetLedgers() { try { return(Ok(await ledgerRepository.GetLedgers())); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Error retrieving data from database")); } }
public async Task <ActionResult> GetLedgers() { try { return(Ok(await ledgerRepository.GetLedgers())); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Error retrieving data from database")); } }