//
        // GET: /AdminTransaction/
        public ActionResult Index()
        {
            if (Session["UserID"] != null)
            {
                if (Session["Role"].Equals("member"))
                {
                    return RedirectToAction("Index", "Member");
                }
            }
            else
            {
                return RedirectToAction("Login", "Account");
            }
            List<int> allMemberUserList = new List<int>();
            AdminTransactionDAL allMemberUserObj = new AdminTransactionDAL();
            allMemberUserList = allMemberUserObj.UserIDList();
            ViewBag.AllmemberList = allMemberUserList;

            List<string> allMemberTransList = new List<string>();
            AdminTransactionDAL allMemberTransObj = new AdminTransactionDAL();
            allMemberTransList = allMemberTransObj.TransactionCategoryList();
            ViewBag.AllmemberTransList = allMemberTransList;

            List<string> allMemberItemList = new List<string>();
            AdminTransactionDAL allMemberItemObj = new AdminTransactionDAL();
            allMemberItemList = allMemberItemObj.ItemCategoryList();
            ViewBag.AllmemberItemList = allMemberItemList;

            List<AdminTransaction> allMemberList = new List<AdminTransaction>();
            AdminTransactionDAL allMemberObj = new AdminTransactionDAL();
            allMemberList = allMemberObj.AllMemberTransactionData();
            return View(allMemberList);
        }
        public ActionResult Index(int UserIDList,string TransactionCategory ,string ItemCategory)
        {
            List<string> allMemberTransList = new List<string>();
            AdminTransactionDAL allMemberTransObj = new AdminTransactionDAL();
            allMemberTransList = allMemberTransObj.TransactionCategoryList();
            ViewBag.AllmemberTransList = allMemberTransList;

            List<string> allMemberItemList = new List<string>();
            AdminTransactionDAL allMemberItemObj = new AdminTransactionDAL();
            allMemberItemList = allMemberItemObj.ItemCategoryList();
            ViewBag.AllmemberItemList = allMemberItemList;

            List<AdminTransaction> allMemberList = new List<AdminTransaction>();
            AdminTransactionDAL allMemberObj = new AdminTransactionDAL();
            allMemberList = allMemberObj.ViewTransaction(UserIDList, TransactionCategory, ItemCategory);

            return View(allMemberList);
        }