public ActionResult UserProfile(string friend) { StreamLineDataEntities context = new StreamLineDataEntities(); var user = context.AspNetUsers.Single(u => u.Email == friend); APIDataService api = new APIDataService(); DataModels model = new DataModels(); model.DataModel = api.GetAllInfo(user.TwitterConnect, user.InstagramConnect); return(View(model)); }
public ActionResult ProfilePageView() { StreamLineDataEntities context = new StreamLineDataEntities(); var user = context.AspNetUsers.Single(u => u.Email == User.Identity.Name); APIDataService api = new APIDataService(); DataModels model = new DataModels(); SpotifyPlaylist playlist = new SpotifyPlaylist(); playlist.SpotifyPlaylistURL = user.SpotifyPlaylistUri; model.DataModel = api.GetAllInfo(user.TwitterConnect, user.InstagramConnect); model.WebPlayer = playlist; return(View(model)); }