public ActionResult Create(Privacy p) { try { // TODO: Add insert logic here p.Insert(); return(RedirectToAction("Index")); } catch { return(View(p)); } }
public void Insert() { Privacy privacy = new Privacy() { Description = "Test" }; int rowsInserted = privacy.Insert(); Assert.IsTrue(rowsInserted == 1); }