public Result Add(OverTimesDetailsBLL OverTimeDetailBLL) { Result result = new Result(); OverTimesDetails OverTimeDetail = new OverTimesDetails() { OverTimeID = OverTimeDetailBLL.OverTime.OverTimeID, EmployeeCareerHistoryID = OverTimeDetailBLL.EmployeeCareerHistory.EmployeeCareerHistoryID, CreateDate = DateTime.Now, CreatedBy = OverTimeDetailBLL.LoginIdentity.EmployeeCodeID }; this.OverTimeDetailID = new OverTimesDetailsDAL().Insert(OverTimeDetail); if (this.OverTimeDetailID != 0) { result.Entity = null; result.EnumType = typeof(OverTimeValidationEnum); result.EnumMember = OverTimeValidationEnum.Done.ToString(); } return(result); }
internal OverTimesDetailsBLL MapOverTimeDetail(OverTimesDetails OverTimeDetail) { try { OverTimesDetailsBLL OverTimeDetailBLL = null; if (OverTimeDetail != null) { OverTimeDetailBLL = new OverTimesDetailsBLL() { OverTimeDetailID = OverTimeDetail.OverTimeDetailID, OverTime = new OverTimesBLL().MapOverTime(OverTimeDetail.OverTimes), EmployeeCareerHistory = new EmployeesCareersHistoryBLL().MapEmployeeCareerHistory(OverTimeDetail.EmployeesCareersHistory) }; } return(OverTimeDetailBLL); } catch { throw; } }