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