Exemple #1
0
        public object GetPendingCbsAccounts(string branchCode)
        {
            var pendingCbsList = _repository.GetPendingCbsAccounts(branchCode);

            foreach (var list in (dynamic)pendingCbsList)
            {
                list.MAKE_STATUS = list.MAKE_STATUS == "A" ? "Active" : "Inactive";
                list.STATUS      = list.STATUS == "A" ? "Active" : "Inactive";
                list.FROZEN      = list.FROZEN == "N" ? "No" : "Yes";
                list.DORM        = list.DORM == "N" ? "No" : "Yes";
            }
            return(pendingCbsList);
        }