public virtual Result Add() { try { Result result = null; EmployeeExperiencesWithDetails EmployeeExperiencesWithDetail = new EmployeeExperiencesWithDetails() { EmployeeCodeID = this.EmployeesCodes.EmployeeCodeID, FromDate = this.FromDate, ToDate = this.ToDate, JobName = this.JobName, SectorName = this.SectorName, SectorTypeID = this.SectorsTypes.SectorTypeID, CreatedDate = DateTime.Now, CreatedBy = this.LoginIdentity.EmployeeCodeID }; this.EmployeeExperienceWithDetailID = new EmployeeExperiencesWithDetailsDAL().Insert(EmployeeExperiencesWithDetail); result = new Result() { Entity = this, EnumType = typeof(EmployeesExperiencesValidationEnum), EnumMember = EmployeesExperiencesValidationEnum.Done.ToString(), }; return(result); } catch { throw; } }
internal EmployeeExperiencesWithDetailsBLL MapEmployeeExperienceWithDetail(EmployeeExperiencesWithDetails EmployeeExperiencesWithDetail) { try { EmployeeExperiencesWithDetailsBLL EmployeeExperiencesWithDetailBLL = null; if (EmployeeExperiencesWithDetail != null) { EmployeeExperiencesWithDetailBLL = new EmployeeExperiencesWithDetailsBLL() { EmployeeExperienceWithDetailID = EmployeeExperiencesWithDetail.EmployeeExperienceWithDetailID, FromDate = EmployeeExperiencesWithDetail.FromDate.Value, ToDate = EmployeeExperiencesWithDetail.ToDate.Value, JobName = EmployeeExperiencesWithDetail.JobName, SectorName = EmployeeExperiencesWithDetail.SectorName, EmployeesCodes = new EmployeesCodesBLL().MapEmployeeCode(EmployeeExperiencesWithDetail.EmployeesCodes), CreatedBy = new EmployeesCodesBLL().MapEmployeeCode(EmployeeExperiencesWithDetail.EmployeesCodes1), CreatedDate = EmployeeExperiencesWithDetail.CreatedDate.Value, SectorsTypes = new SectorsTypesBLL().MapSectorType(EmployeeExperiencesWithDetail.SectorsTypes), }; } return(EmployeeExperiencesWithDetailBLL); } catch { throw; } }