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)); }
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)); }