Exemplo n.º 1
0
        public List <AccademyEmployee> GetAllEmployees()
        {
            List <AccademyEmployee> resultList = new List <AccademyEmployee>();
            var listOfEntities = ctx.Employees.ToList();

            foreach (var entity in listOfEntities)
            {
                resultList.Add(emp_factory.CreateDto(entity));
            }
            return(resultList);
        }