internal PromotionsRecordsLogsBLL MapPromotionRecordLog(PromotionsRecordsLogs item) { return(item != null ? new PromotionsRecordsLogsBLL() { PromotionRecordLogID = item.PromotionRecordLogID, ActionDescription = item.ActionDescription, //PromotionRecord = new EmployeesCareersHistoryBLL().MapPromotionRecord(item.PromotionRecord), PromotionRecordNo = Convert.ToInt32(item.PromotionRecordNo), PromotionRecordActionType = new PromotionsRecordsActionsTypesBLL().MapPromotionActionType(item.PromotionsRecordsActionsTypes), ActionDate = item.ActionDate, ActionBy = new EmployeesCodesBLL().MapEmployeeCode(item.ActionByNav) } : null); }
public virtual Result Add() { Result result = new Result(); PromotionsRecordsLogs PromotionRecordLog = new PromotionsRecordsLogs(); PromotionRecordLog.PromotionRecordID = this.PromotionRecord.PromotionRecordID; PromotionRecordLog.PromotionRecordNo = this.PromotionRecordNo.ToString(); PromotionRecordLog.ActionDescription = this.ActionDescription; PromotionRecordLog.PromotionRecordActionTypeID = this.PromotionRecordActionType.PromotionActionTypeID; PromotionRecordLog.ActionDate = DateTime.Now; PromotionRecordLog.ActionBy = this.LoginIdentity.EmployeeCodeID; this.PromotionRecordLogID = new PromotionsRecordsLogsDAL().Insert(PromotionRecordLog); if (this.PromotionRecordLogID != 0) { result.Entity = this; result.EnumType = typeof(PromotionsRecordsValidationEnum); result.EnumMember = PromotionsRecordsValidationEnum.Done.ToString(); } return(result); }