/// <summary>
 ///     Get last alerts
 /// </summary>
 /// <returns></returns>
 public IEnumerable <Alert> GetLastAlerts()
 {
     _logger.LogInformation($"BEGIN GetLastAlerts");
     try
     {
         return(MapAlerts(_alertRepository.GetLastAlerts()));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Exception on GetLastAlerts with message: {ex.Message}");
         return(null);
     }
 }