Exemplo n.º 1
0
        // GET api/alerts
        //[Route("")]
        public IList <Alert> GetAlerts()
        {
            List <Alert> result = new List <Alert>();

            try
            {
                var repository = new AlertRepository();
                result = repository.GetAlerts().ToList();
            }
            catch (Exception ex)
            {
                new Logger("Error in AlertsController - GetAlerts(): " + ex.Message, ex);
                throw;
            }
            return(result);
        }
 public List <Alert> GetAlerts(Item item)
 {
     return(alertRepository.GetAlerts(item));
 }