Example #1
0
        public async Task Query_Stats_UserVotesReceived()
        {
            var q = new QueryUserVotesReceived();
            var r = await q.ExecuteAsync();

            Assert.IsNotNull(r);
        }
Example #2
0
        public async Task <ActionResult> UserVotesReceived()
        {
            var q      = new QueryUserVotesReceived();
            var result = await q.ExecuteAsync();

            ViewBag.NavigationViewModel = new Models.ViewModels.NavigationViewModel()
            {
                BasePath    = "statistics",
                MenuType    = Models.ViewModels.MenuType.Statistics,
                Description = "Voat Statistics",
                Name        = "User Votes Received"
            };

            return(View(result));
        }