public async Task <IActionResult> deleteFriend(string username, string friendname)
        {
            //var res = await _service.GetProfileByUsername(username);
            if (await _service.GetProfileByUsername(username) == null)
            {
                return(NotFound("user not found"));
            }

            if (await _service.GetProfileByUsername(friendname) == null)
            {
                return(NotFound("friend not found"));
            }

            if (!await _service.isFriend(username, friendname))
            {
                return(BadRequest("already not friend"));
            }

            var tem = await _service.DeleteUserFriend(username, friendname);

            await _groupService.DeleteFriend(username, friendname);

            if (tem == null)
            {
                return(BadRequest("delete friend error"));
            }
            return(Ok());
        }