public void AddComment(PMS.Model.DTO.Appraisal.SectionComment comment) { if (comment != null) { if (Lib.Utility.Common.IsNullOrEmptyList(lst_comments)) { lst_comments = new List <SectionComment>(); } lst_comments.Add(comment); } }
public static PMS.Model.DTO.Appraisal.SectionComment MapAppraisalSectionCommentEntityToDTO(PMS.Model.Context.PMS_APPRAISAL_SECTION_COMMENT entity) { PMS.Model.DTO.Appraisal.SectionComment obj_dto = new PMS.Model.DTO.Appraisal.SectionComment() { Id = entity.ID, // Stage = MapStageEntityToDTO(entity.PMS_MST_STAGE), Comments = entity.COMMENTS, //Commentor = CoreMapper.MapEmployeeEntityToDTO(entity.EMPLOYEE), CommentedTimestamp = entity.COMMENTED_TIMESTAMP }; obj_dto.AppraisalSection = entity.PMS_APPRAISAL_SECTION == null ? null : MapAppraisalSectionEntityToDTO(entity.PMS_APPRAISAL_SECTION, false); return obj_dto; }