public ActionResult RetroWidget() { var model = new PostsWidgetViewModel { PostList = _postService.Read(UserHelper.UserId, string.Empty).Take(6).ToList() }; return(View("_RetroWidget", model)); }
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)); }
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)); }