public ActionResult AjouterBars(BarsRecord bar) { if (ModelState.IsValid) { BarsTable table = new BarsTable(Session["Database"]); table.bar = bar; table.bar.UploadLogo(Request); table.Insert(); return RedirectToAction("ListerBars", "Bars"); } return View(bar); }
public BarsTable() { bar = new BarsRecord(); SetTableName("Bars"); }
public BarsTable(object conn) : base(conn) { bar = new BarsRecord(); SetTableName("Bars"); }