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(); }