public async Task <IActionResult> DeleteFriendRequest([FromQuery] string username) { int userId = ClaimHelper.FindNameIdentifier(HttpContext.User.Claims); var response = await _friendService.DeleteFriendRequest(userId, username); if (!response.Success) { return(BadRequest(response.Message)); } FriendDto friendDto = _mapper.Map <Friend, FriendDto>(response.Resource); return(Ok(friendDto)); }