Exemplo n.º 1
0
        public async Task Query_Stats_UserVotesGiven()
        {
            var q = new QueryUserVotesGiven();
            var r = await q.ExecuteAsync();

            Assert.IsNotNull(r);
        }
Exemplo n.º 2
0
        public async Task <ActionResult> UserVotesGiven()
        {
            var q      = new QueryUserVotesGiven();
            var result = await q.ExecuteAsync();

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

            return(View(result));
        }