/// <summary> /// Get the list of alert details to be sent to Enterprise /// </summary> /// <returns>alert details</returns> public List <AlertDetails> GetAlertDetails() { IList <AlertDetails> lstAlertDetails = null; try { using (AlertDataContext context = new AlertDataContext(DatabaseHelper.GetConnectionString())) { lstAlertDetails = context.GetAlertDetails().ToList(); } } catch (Exception ex) { ExceptionManager.Publish(ex); } return(lstAlertDetails as List <AlertDetails>); }
/// <summary> /// Get the list of alert details to be sent to Enterprise /// </summary> /// <returns>alert details</returns> public List<AlertDetails> GetAlertDetails() { IList<AlertDetails> lstAlertDetails = null; try { using (AlertDataContext context = new AlertDataContext(DatabaseHelper.GetConnectionString())) { lstAlertDetails = context.GetAlertDetails().ToList(); } } catch (Exception ex) { ExceptionManager.Publish(ex); } return lstAlertDetails as List<AlertDetails>; }