public IActionResult GetDistinctTimeZones() { try { IEnumerable <string> result = repository.GetDistinctTimeZones(); if (result != null && result.Count() > 0) { return(Ok(result)); } else { return(NotFound()); } } catch (Exception ex) { Debug.WriteLine(ex); throw; } }