public static bool DeleteEmployee(string EmpID)
        {
            EmployeeDAS employeeDAS         = new EmployeeDAS();
            int         numberOfRowImpacted = 0;

            numberOfRowImpacted = employeeDAS.DeleteEmployee(EmpID);
            return(numberOfRowImpacted > 0);
        }
        public static bool UpdateEmployee(EmployeeBO employee)
        {
            EmployeeDAS employeeDAS         = new EmployeeDAS();
            int         numberOfRowImpacted = 0;

            numberOfRowImpacted = employeeDAS.UpdateEmployee(employee);
            return(numberOfRowImpacted > 0);
        }
        public static EmployeeBO GetEmployee(string EmpCode)
        {
            EmployeeBO employee = new EmployeeBO();

            employee.EmpID = null;
            EmployeeDAS       employeeDAS = new EmployeeDAS();
            string            jsondata    = employeeDAS.GetEmployeeByID(EmpCode);
            List <EmployeeBO> employeeBOs = new List <EmployeeBO>();

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                employeeBOs = StringUtil.DeserializeObjectFromJSON <List <EmployeeBO> >(jsondata);
                employee    = employeeBOs.ElementAt(0);
            }
            return(employee);
        }
        public static List <EmployeeItemBO> GetAllEmployees(EmployeeItemBO employee = null)
        {
            EmployeeDAS           employeeDAS = new EmployeeDAS();
            string                jsondata    = employeeDAS.GetAllEmployees();
            List <EmployeeItemBO> employees   = new List <EmployeeItemBO>();

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                employees = StringUtil.DeserializeObjectFromJSON <List <EmployeeItemBO> >(jsondata);
            }
            if (employee != null)
            {
                employees = FilterEmployees(employees, employee);
            }
            return(employees);
        }