// GET: /SubCategory/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SubCategory subcategory = _subCategoryManager.GetById((int)id);

            if (subcategory == null)
            {
                return(HttpNotFound());
            }
            var categoryList = _categoryManager.GetAll();

            ViewBag.CategoryID = new SelectList(categoryList, "CategoryID", "CategoryName");
            return(View(subcategory));
        }