Exemplo n.º 1
0
        public ActionResult RetroWidget()
        {
            var model = new PostsWidgetViewModel
            {
                PostList = _postService.Read(UserHelper.UserId, string.Empty).Take(6).ToList()
            };

            return(View("_RetroWidget", model));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> BoxWidget()
        {
            var postList = await _postService.ListByCategoryAsync(UserHelper.Id, string.Empty);

            var model = new PostsWidgetViewModel
            {
                PostList = postList.Take(6).ToList()
            };

            return(View("_BoxWidget", model));
        }
Exemplo n.º 3
0
        public async Task <ActionResult> RetroWidget()
        {
            var postList = await _postService.ReadAsync(UserHelper.UserId, string.Empty);

            var model = new PostsWidgetViewModel
            {
                PostList = postList.Take(6).ToList()
            };

            return(View("_RetroWidget", model));
        }