public async Task <IActionResult> Like(int id) { var user = await _userService.GetOneByEmail(User.Identity.Name); var post = await _postService.GetOneById(id); await _postService.AddOrRemoveLike(user, post); return(Ok()); }