public static bool RemoveDepartment(DepartmentBO departmentBO) { DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS(); int numberOfRowImpacted = 0; numberOfRowImpacted = deptDesigAndFinInstitutionDAS.RemoveDepartment(departmentBO); return(numberOfRowImpacted > 0); }
public static bool AddDesignaion(DesignationBO designationBO) { DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS(); int numberOfRowImpacted = 0; numberOfRowImpacted = deptDesigAndFinInstitutionDAS.AddDesignation(designationBO); return(numberOfRowImpacted > 0); }
public static List <FinancialInstitutionBO> GetFinancialInstitutionBOs() { DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS(); string jsondata = deptDesigAndFinInstitutionDAS.GetAllFinancialInstitutions(); List <FinancialInstitutionBO> financialInstitutionBOs = new List <FinancialInstitutionBO>(); if (!jsondata.StartsWith("DB_ERROR")) { financialInstitutionBOs = StringUtil.DeserializeObjectFromJSON <List <FinancialInstitutionBO> >(jsondata); } return(financialInstitutionBOs); }
public static List <DepartmentBO> GetDepartmentBOs() { DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS(); string jsondata = deptDesigAndFinInstitutionDAS.GetAllDepartments(); List <DepartmentBO> departmentBOs = new List <DepartmentBO>(); if (!jsondata.StartsWith("DB_ERROR")) { departmentBOs = StringUtil.DeserializeObjectFromJSON <List <DepartmentBO> >(jsondata); } return(departmentBOs); }
public static DepartmentBO GetDepartmentBO(DepartmentBO departmentBO) { DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS(); string jsondata = deptDesigAndFinInstitutionDAS.GetDepartment(departmentBO); List <DepartmentBO> departmentBOs; if (!jsondata.StartsWith("DB_ERROR")) { departmentBOs = StringUtil.DeserializeObjectFromJSON <List <DepartmentBO> >(jsondata); departmentBO = departmentBOs.ElementAt(0); } return(departmentBO); }
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); }
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); } }
public static bool IsDepartmentPresent(DepartmentBO department) { DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS(); string jsondata = deptDesigAndFinInstitutionDAS.GetDepartment(department); if (!jsondata.StartsWith("DB_ERROR")) { return(true); } else { return(false); } }