public async Task <int> Update(DNSAddress model)
        {
            var result = _myDbContext.DNSAddresses.Find(model);

            result = model;
            return(await _myDbContext.SaveChangesAsync());
        }
        public async Task <DNSAddress> Add(DNSAddress model)
        {
            var result = _myDbContext.DNSAddresses.Add(model);
            await _myDbContext.SaveChangesAsync();

            return(result);
        }
 public async Task <int> Remove(DNSAddress model)
 {
     _myDbContext.DNSAddresses.Remove(model);
     return(await _myDbContext.SaveChangesAsync());
 }