Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public BarsTable()
 {
     bar = new BarsRecord();
     SetTableName("Bars");
 }
Esempio n. 3
0
 public BarsTable(object conn)
     : base(conn)
 {
     bar = new BarsRecord();
     SetTableName("Bars");
 }