public IEnumerable <EmployeeModelConcise> ConvertEntityListToEmployeeModelConciseList(IEnumerable <appointment_employee> entityList) { List <EmployeeModelConcise> modelList = new List <EmployeeModelConcise>(); if (entityList == null) { return(modelList); } foreach (appointment_employee entity in entityList) { var model = new EmployeeModelConcise { Id = entity.employeeId, Name = entity.employee.firstName.Trim() + " " + entity.employee.lastName.Trim() }; modelList.Add(model); } return(modelList); }
public IEnumerable <EmployeeModelConcise> ConvertEntityListToEmployeeModelConciseList(IEnumerable <appointment_test_clinician> entityList) { List <EmployeeModelConcise> modelList = new List <EmployeeModelConcise>(); if (entityList == null) { return(modelList); } foreach (appointment_test_clinician entity in entityList) { var model = new EmployeeModelConcise { Id = entity.clinicianId, Name = entity.clinicianName.Trim() }; modelList.Add(model); } return(modelList); }