Пример #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");
 }