Esempio n. 1
0
        public List <News> GetAllByDate(DateTime date)
        {
            var result = _newsRepository.GetAllByDate(date) ?? Enumerable.Empty <News>();

            return(result.OrderByDescending(n => n.Date).ToList());
        }