public ActionResult Create(Menu model)
        {
            try
            {
                // TODO: Add update logic here
                if (ModelState.IsValid)
                {
                    var dao = new MenuDao();
                    var result = dao.Create(model);
                    return RedirectToAction("Index");
                }

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
 public ActionResult TopMenu()
 {
     var model = new MenuDao().ListByGroupId(2);
     return PartialView(model);
 }
 // GET: Admin/Menu/Edit/5
 public ActionResult Edit(int id)
 {
     var db = new MenuDao();
     var model = db.GetByID(id);
     return View(model);
 }
 // GET: Admin/Menu
 public ActionResult Index()
 {
     var db = new MenuDao();
     var model = db.ListByGroupId(2);
     return View(model);
 }