Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <IActionResult> GetLikesPostAsync([FromRoute] Guid postId) { var post = await _postService.GetPostByIdAsync(postId); if (post == null) { return(NotFound()); } var likes = await _likeService.GetLikesAsync(postId, nameof(Post)); var likesResponse = _mapper.Map <List <LikeResponse> >(likes); return(Ok(new Response <List <LikeResponse> >(likesResponse))); }