Exemplo n.º 1
0
        /// <summary>
        /// This function will use SQLDataAdapter and return the DataTable
        /// </summary>
        /// <returns>A list of EmployeeDTO objects</returns>
        public List <EmployeeDTO> GetBL()
        {
            List <Employee>    ListEMP = empdal.GetDL();
            List <EmployeeDTO> ListDTO = new List <EmployeeDTO>();

            foreach (var employee in ListEMP)
            {
                ListDTO.Add(mapper.ToDtoObj(employee));
            }
            return(ListDTO);
        }