public ActionResult BrowseCreatorStories() { BrowseStoryModel model = new BrowseStoryModel(); storiesAvailable = new List <StoryModel>(); var username = "******"; GetStories storyobj = new GetStories(); var results = storyobj.getCreatedStories(username); for (int i = 0; i < results.Count; i++) { StoryModel story = new StoryModel(); story.Title = results[i].Title; story.Content = results[i].Content; storiesAvailable.Add(story); } ViewBag.GenreValue = "Select"; ViewBag.TypeValue = "Type"; model.GenreValues = HomeControllerUtilities.GetGenres(); model.TypeValues = HomeControllerUtilities.GetTypes(); model.Stories = storiesAvailable; return(View(model)); }