public void SetViewBag(long? selectedId = null)
 {
     var dao = new CategoryDao();
     ViewBag.CategoryID = new SelectList(dao.ListAll(), "ID", "Name", selectedId);
 }
 public ActionResult Category(long id)
 {
     var category = new CategoryDao().ViewDetail(id);
     return View(category);
 }