Exemplo n.º 1
0
        public ActionResult List()
        {
            if (!Session.IsSignedIn())
            {
                return(RedirectToAction("Index", "Home"));
            }

            var model = new DonationsListViewModel
            {
                Donations = donationService.FindAll()
            };

            return(View(model));
        }