// GET: Detail
        public ActionResult Index(int id)
        {
            MobileDAO       MobileDAO = new MobileDAO();
            MobileViewModel Mobile    = MobileDAO.GetMobileViewModelById(id);

            return(View(Mobile));
        }
        public ActionResult Edit(int id)
        {
            if (HttpContext.Cache[Constants.LIST_CATEGORY] == null)
            {
                var categoryDao = new CategoryDAO();
                HttpContext.Cache[Constants.LIST_CATEGORY] = categoryDao.GetListCategoryName();
            }
            ViewBag.ListCategory = HttpContext.Cache[Constants.LIST_CATEGORY];

            var dao             = new MobileDAO();
            var MobileViewModel = dao.GetMobileViewModelById(id);

            return(View(MobileViewModel));
        }