public IActionResult Index() { List <EmployeeView> employees = new List <EmployeeView>(); var domain = employeeDomainService.GetAll(); foreach (var a in domain) { employees.Add(Mapper.EmployeeToEmployeeView(a)); } return(View(employees)); }
public IEnumerable <EmployeeDto> GetAll() { return(MapFromEntitiesToDtos(_employeeDomainService.GetAll(), DomainToDtoEnum.Employee)); }