public async Task <int> updateContact(ConfirmContact confirmContact)
        {
            var listContact = _dbContext.Contacts.Include(c => c.ContactInfo)
                              .Where(c => confirmContact.ListContact.Contains(c.ID.ToString()) && c.Result != "fail").ToList();

            foreach (var item in listContact)
            {
                if (item.ContactInfo is null)
                {
                    var contactInfo = new ContactInfo()
                    {
                        Address    = confirmContact.Address,
                        Time       = confirmContact.Time,
                        Contact    = item,
                        ID_Contact = item.ID
                    };
                    _dbContext.ContactInfos.Add(contactInfo);
                }
                else
                {
                    item.ContactInfo.Time    = confirmContact.Time;
                    item.ContactInfo.Address = confirmContact.Address;
                }
                item.Result = "done";
            }
            return(await _dbContext.SaveChangesAsync());
        }
        public async Task <IActionResult> updateContact([FromBody] ConfirmContact confirmContact)
        {
            var rs = await _contactService.updateContact(confirmContact);

            if (rs == 1)
            {
                return(Ok(new BaseResponse(200, "done")));
            }
            else
            {
                return(Ok(new BaseResponse(400, "failed")));
            }
        }