public ActionResult Edit(Menu menu, int id, string tempstatus)
 {
     SetMenuType();
     menu.MenuID = id;
     if (ModelState.IsValid)
     {
         if (tempstatus == "Kích Hoạt")
         {
             menu.Status = true;
         }
         else
         {
             menu.Status = false;
         }
         MenuDAO menuDAO = new MenuDAO();
         var     check   = menuDAO.Edit(menu);
         if (check > 0)
         {
             TempData["msg"] = MessageBox.Show("Edit successful");
             return(RedirectToAction("Index", "Menu", new { @page = priorpage }));
         }
         else
         {
         }
     }
     return(View(new { @menu = menu, @id = id }));
 }