public IActionResult Index()
        {
            List <FriendData> memlist = new List <FriendData>();



            foreach (var item in TempMemData.Memlist)
            {
                memlist.Add(
                    new FriendData()
                {
                    username  = item.username,
                    nickname  = item.nickname,
                    gender    = item.gender,
                    memberID  = item.memberID,
                    job       = item.job,
                    state     = item.state,
                    introduce = item.introduce
                });
            }
            var resp = new FriendResp()
            {
                code = 0,
                data = memlist,
            };

            return(Json(resp));
        }
        //刪除好友
        public IActionResult Delete([FromBody] FriendReq req)
        {
            List <FriendData> memlist = new List <FriendData>();

            foreach (var item in TempMemData.Memlist)
            {
                memlist.Add(
                    new FriendData()
                {
                    username  = item.username,
                    nickname  = item.nickname,
                    gender    = item.gender,
                    memberID  = item.memberID,
                    job       = item.job,
                    state     = item.state,
                    introduce = item.introduce
                });
            }

            //var respdata = new FriendData()
            //{
            //    username = "******",
            //    nickname = "台北張阿姨",
            //    gender = "女",
            //    memberID = 1,
            //    job = "阿姨",
            //    state = "加好友就送PS5",
            //    introduce = "台北有五棟房子"
            //};

            //var respdata2 = new FriendData()
            //{
            //    username = "******",
            //    nickname = "台北潘阿姨",
            //    gender = "女",
            //    memberID = 3,
            //    job = "年輕阿姨",
            //    state = "現在加好友,晚上帶你去牽車 BY渴望小鮮肉的大獅子",
            //    introduce = "東區有5間店面"
            //};

            //memlist.Add(respdata);
            //memlist.Add(respdata2);

            var resp = new FriendResp()
            {
                code = 0,
                msg  = "刪除成功",
                data = memlist,
            };

            return(Json(resp));
        }