public async Task <IActionResult> FindByIdAsync(Guid id) { try { var content = await db.FindById(id); if (content != null) { logger.LogInformation("------------> Card have been returned <------------"); return(Ok(snakeCaseConverter.ConvertToSnakeCase(content))); } else { logger.LogWarning("------------> Card not found <------------"); return(NotFound("Card not found")); } } catch (Exception ex) { logger.LogWarning("------------> An error has occurred <------------ \n" + ex.Message); return(BadRequest(ex.Message)); } }