Beispiel #1
0
 public ActionResult ThemBrand(Brand p)
 {
     if (ModelState.IsValid)
     {
         QuanLy ql = new QuanLy();
         ql.AddBrand(p);
         return(RedirectToAction("Brand"));
     }
     ViewBag.IDbrand = new SelectList(__db.Brands, "ID", "Name", p.ID);
     return(View(p));
 }