// GET: FreeTips public ViewResult Index() { var freeTips = _context.FreeTips.OrderByDescending(f => f.Id).ToList(); var freeTipsViewResult = new ViewModel.ViewModelData { FreeTips = freeTips }; return(View(freeTipsViewResult)); }
// GET: Monthly public ViewResult Index() { var monthlyTips = _context.MonthlySubscrations.OrderByDescending(m => m.Id).ToList(); var monthlyTipsViewModel = new ViewModel.ViewModelData { MonthlySubscrations = monthlyTips }; return(View(monthlyTipsViewModel)); }