public async Task <IActionResult> CountUserTemplates() { try { _logger.LogInformation("Calling CountUserTemplates()"); long result = await _TemplateRepo.CountUserTemplates(); _logger.LogInformation("Called CountUserTemplates()"); return(Ok(result)); } catch (Exception ex) { _logger.LogError(ex, "Error Retrieving User Template Count in MongoDB"); return(NotFound()); } }