private LinkSaved ConvertDoc(IHit <LinkSaved> hit)
        {
            LinkSaved u = new LinkSaved();

            try
            {
                u    = hit.Source;
                u.id = hit.Id;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            return(u);
        }
        public bool UpdateStatus(string id, int thuoc_tinh)
        {
            //string msg = "";
            var link = new LinkSaved();
            var re_u = client.Get <LinkSaved>(id);

            if (re_u.Found)
            {
                link.id = id;
                var re = client.Update <LinkSaved, object>(link.id, u => u.Doc(new { thuoc_tinh = thuoc_tinh }));
                return(re.Result == Result.Updated || re.Result == Result.Noop);
            }

            return(false);
        }