public async Task <IActionResult> Approve(string postId) { var post = await _postService.GetPost(postId); var approvePostVM = PostMappers.ConvertToOtherPostVM(post); return(View(approvePostVM)); }
public async Task <IActionResult> Edit(string postId) { var post = await _postService.GetPost(postId); var editedPostVM = PostMappers.ConvertToOtherPostVM(post); return(View("EditPost", editedPostVM)); }