示例#1
0
        public IActionResult Index()
        {
            Dictionary <string, object> model = new Dictionary <string, object>();
            string          allSightings      = Sighting.GetSightings();
            List <Sighting> sightingsList     = Sighting.GetSightingsList();

            model.Add("sightings", allSightings);
            model.Add("sightingsList", sightingsList);
            return(View(model));
        }
示例#2
0
        public IActionResult UserAccount(int id)
        {
            Dictionary <string, object> model = new Dictionary <string, object>();
            User            newUser           = IceTracker.Models.User.FindAUserById(id);
            string          allSightings      = Sighting.GetSightings();
            List <Sighting> sightingsList     = Sighting.GetSightingsList();

            model.Add("user", newUser);
            model.Add("sightings", allSightings);
            model.Add("sightingsList", sightingsList);
            return(View(model));
        }