示例#1
0
 public IActionResult Index()
 {
     ViewModels.PostUser redditList = new ViewModels.PostUser()
     {
         ListOfPosts = redditService.GetAllElements(),
         User        = redditService.GetLoginUser(),
         ListOfUsers = redditService.GetAllUsers()
     };
     return(View(redditList));
 }