Created
July 16, 2017 22:29
-
-
Save hudo/0b8c933725f3c752412caecfafc6dbf0 to your computer and use it in GitHub Desktop.
Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IActionResult Index() | |
{ | |
var model = new HomePageViewModel | |
{ | |
Title = "Welcome!", | |
DisplayMode = StoriesDisplayMode.FeaturedList, | |
CanWriteStory = User.Identity.IsAuthenticated | |
}; | |
return View(model); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment