public async Task <IActionResult> GetTalks() { var talkDTos = await _talkService.GetTalksAsync(); try { if (talkDTos == null) { return(NotFound(new ApiResponse { Status = false, Message = "Not Found" })); } } catch (Exception ex) { _logger.LogError(ex.Message, $"Failed to pull request for Talks: {DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss.fff")}"); } _logger.LogInformation("Successfully pulled request for Talks"); return(Ok(new ApiResponse { Status = true, Message = "Successful", Result = talkDTos })); }