public override CompanyJobRole TranslateToModel(COMPANY_JOB_ROLE entity) { try { CompanyJobRole model = null; if (entity != null) { model = new CompanyJobRole(); model.Id = entity.Company_Job_Role_Id; model.Company = companyTranslator.Translate(entity.COMPANY); model.JobRole = jobRoleTranslator.Translate(entity.JOB_ROLE); model.Description = entity.Description; } return(model); } catch (Exception) { throw; } }
public override CompanyDepartmentJobRole TranslateToModel(COMPANY_DEPARTMENT_JOB_ROLE entity) { try { CompanyDepartmentJobRole companyDepartmentJobRole = null; if (entity != null) { companyDepartmentJobRole = new CompanyDepartmentJobRole(); companyDepartmentJobRole.Id = entity.Company_Department_Job_Role_ID; companyDepartmentJobRole.Company = companyTranslator.Translate(entity.COMPANY_DEPARTMENT.COMPANY); companyDepartmentJobRole.Department = departmentTranslator.Translate(entity.COMPANY_DEPARTMENT.DEPARTMENT); companyDepartmentJobRole.JobRole = jobRoleTranslator.Translate(entity.JOB_ROLE); companyDepartmentJobRole.Description = entity.Description; } return(companyDepartmentJobRole); } catch (Exception) { throw; } }