Ejemplo n.º 1
0
        // GET: FreeTips
        public ViewResult Index()
        {
            var freeTips = _context.FreeTips.OrderByDescending(f => f.Id).ToList();


            var freeTipsViewResult = new ViewModel.ViewModelData
            {
                FreeTips = freeTips
            };

            return(View(freeTipsViewResult));
        }
Ejemplo n.º 2
0
        // GET: Monthly
        public ViewResult Index()
        {
            var monthlyTips = _context.MonthlySubscrations.OrderByDescending(m => m.Id).ToList();


            var monthlyTipsViewModel = new ViewModel.ViewModelData
            {
                MonthlySubscrations = monthlyTips
            };


            return(View(monthlyTipsViewModel));
        }