Exemplo n.º 1
0
        public int DeleteEmployeeLogic(int id)
        {
            HandleEmployeeData handleEmployeeData = new HandleEmployeeData();
            int x = handleEmployeeData.DeleteEmployee(id);

            return(x);
        }
Exemplo n.º 2
0
        public string getEmployeeDesignationWithNameLogic(string name)
        {
            HandleEmployeeData handleEmployeeData = new HandleEmployeeData();
            string             designation        = handleEmployeeData.getEmployeeDesignationWithName(name);

            return(designation);
        }
Exemplo n.º 3
0
        public int getEmployeeDataWithNameLogic(string name)
        {
            HandleEmployeeData handleEmployeeData = new HandleEmployeeData();
            int id = handleEmployeeData.getEmployeeIWithName(name);

            return(id);
        }
Exemplo n.º 4
0
        public int GetSumOfOtHoursLogic(string name)
        {
            HandleEmployeeData handleEMployeeData = new HandleEmployeeData();
            int li = 0;

            li = handleEMployeeData.GetSumOfOtHours(name);
            return(li);
        }
Exemplo n.º 5
0
        public List <Employee> getEmployeeData()
        {
            List <Employee>    employeeList       = new List <Employee>();
            HandleEmployeeData handleEmployeeData = new HandleEmployeeData();

            employeeList = handleEmployeeData.GetEmployeeData();
            return(employeeList);
        }
Exemplo n.º 6
0
 public bool AddEmployees(Employee employeeModel)
 {
     try
     {
         HandleEmployeeData handleEmployeeData = new HandleEmployeeData();
         handleEmployeeData.AddEmployees(employeeModel);
         return(true);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         return(false);
     }
 }