public async Task <IActionResult> AddLikeAsync(string postId) { var loggedInUser = await _userManager.GetUserAsync(HttpContext.User); var like = new Like() { AuthorId = loggedInUser.Id, PostId = new Guid(postId) }; await _postService.AddLikeAsync(like); return(RedirectToAction("Index", "Forum")); }