Exemplo n.º 1
0
        public ActionResult SearchDomain(string domain)
        {
            var whois    = new RequestApiWhois().SearchDomain(domain);
            var database = new WhoisContext();
            var content  = new WhoisParsed();

            database.WhoisParseds.Add(content);
            database.SaveChanges();

            return(View("Index", whois));
        }
 public void Save(Snapshot snapshot)
 {
     _context.Snapshots.Add(snapshot);
     _context.SaveChanges();
 }