Advertisement
Placido_GDD

EmployeeBLL

May 15th, 2022
792
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using DAL.DTO;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using DAL.DAO;
  8. using DAL;
  9.  
  10. namespace BLL
  11. {
  12.     public class EmployeeBLL
  13.     {
  14.         public static EmployeeDTO GetAll()
  15.         {
  16.             EmployeeDTO dto = new EmployeeDTO();
  17.             dto.Departments = DepartmentDAO.GetDepartments();
  18.             dto.Positions = PositionDAO.GetPositions();
  19.             return dto;
  20.         }
  21.  
  22.         public static void AddEmployee(EMPLOYEE employee)
  23.         {
  24.             EmployeeDAO.AddEmployee(employee);
  25.         }
  26.     }
  27. }
  28.  
Advertisement
RAW Paste Data Copied
Advertisement