Exemplo n.º 1
0
        public ActionResult FundDeductionIndex(string searchString, string message)
        {
            string searchWords = searchString;

            if (message != null)
            {
                ViewBag.SaruMessage = message;
            }
            else
            {
                ViewBag.SaruMessage = "";
            }
            SetupEmployeeMasterModel     model  = new SetupEmployeeMasterModel();
            SetupEmployeeMasterProviders SEMPro = new SetupEmployeeMasterProviders();

            model.SetupEmployeeMasterModelList = SEMPro.GetFundDeductionList();
            if (!String.IsNullOrEmpty(searchWords))
            {
                model.SetupEmployeeMasterModelList = SEMPro.GetFundDeductionListBySearchWord(searchWords);
            }
            return(View(model));
        }