コード例 #1
0
        public ActionResult Approve()
        {
            string             message = "";
            bool               status  = false;
            List <IncomeModel> incomes = IncomeManager.LoadUnApprovedIncome();

            if (incomes.Count() > 0)
            {
                ViewBag.UnApprovedIncome = incomes;
                message = incomes.Count() + "Un approved incomes found";
                status  = true;
            }
            else
            {
                message = "Nothing to approve now";
                status  = false;
            }
            ViewBag.Message = message;
            ViewBag.Status  = status;
            return(View());
        }