public ViewResult ViewJobList() { return(View("JobsList", PostDbManager.FetchPostsLinkedWithUserID(CurrentUser.Storage().UserDb.UserId))); }
public RedirectToActionResult SelectedJob(int selectedPostId) { PostDbManager.SelectedOtherUsersPost(selectedPostId); return(RedirectToAction("Index", "Main")); }
public IActionResult CommunityPosts() { ViewBag.listOfPosts = PostDbManager.FetchPostsByCommunityId(CurrentUser.Storage().UserDb.CommunityId); return(View()); }
public IActionResult SelectedPost(int postId) { PostDbManager.SelectedPost(postId); return(View()); }
public IActionResult Create(CreatePostViewModel model) { PostDbManager.CreatePost(model); return(RedirectToAction("Index", "Main")); }