public virtual EmployeesExperiencesBLL GetByEmployeeExperienceID(int EmployeeExperienceID) { try { EmployeesExperiences EmployeeExperience = new EmployeesExperiencesDAL().GetByEmployeeExperienceID(EmployeeExperienceID); return(new EmployeesExperiencesBLL().MapEmployeeExperience(EmployeeExperience)); } catch { throw; } }
public virtual List <EmployeesExperiencesBLL> GetEmployeeExperiencesByEmployeeCodeID(int EmployeeCodeID) { try { List <EmployeesExperiences> EmployeesExperiencesList = new EmployeesExperiencesDAL().GetEmployeeExperiencesByEmployeeCodeID(EmployeeCodeID); List <EmployeesExperiencesBLL> EmployeesExperiencesBLLList = new List <EmployeesExperiencesBLL>(); foreach (var item in EmployeesExperiencesList) { EmployeesExperiencesBLLList.Add(new EmployeesExperiencesBLL().MapEmployeeExperience(item)); } return(EmployeesExperiencesBLLList); } catch { throw; } }