Beispiel #1
0
        public static DesignationBO GetDesignationBO(DesignationBO designationBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetDesignation(designationBO);
            List <DesignationBO> designationBOs;

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                designationBOs = StringUtil.DeserializeObjectFromJSON <List <DesignationBO> >(jsondata);
                designationBO  = designationBOs.ElementAt(0);
            }
            return(designationBO);
        }
Beispiel #2
0
        public static bool IsDesignationPresent(DesignationBO designation)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetDesignation(designation);

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