예제 #1
0
 public ActionResult Edit(int id)
 {
     try
     {
         ViewBag.brands = new SelectList(brandBL.GetBrand(), "BrandId", "BrandName");
         Mobile mobile = mobileBL.GetMobileId(id);
         return(View(mobile));
     }
     catch
     {
         return(RedirectToAction("Error", "Error"));
     }
 }