Esempio n. 1
0
        public static FinancialInstitutionBO GetFinancialInstitutionBO(FinancialInstitutionBO financialInstitutionBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetFinancialInstitution(financialInstitutionBO);
            List <FinancialInstitutionBO> financialInstitutionBOs;

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                financialInstitutionBOs = StringUtil.DeserializeObjectFromJSON <List <FinancialInstitutionBO> >(jsondata);
                financialInstitutionBO  = financialInstitutionBOs.ElementAt(0);
            }
            return(financialInstitutionBO);
        }
Esempio n. 2
0
        public static bool IsFinancialInstitutionPresent(FinancialInstitutionBO financialInstitution)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetFinancialInstitution(financialInstitution);

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }