Beispiel #1
0
 public void AddComment(PMS.Model.DTO.Appraisal.CoreValueComment comment)
 {
     if (comment != null)
     {
         if (Lib.Utility.Common.IsNullOrEmptyList(lst_comments))
         {
             lst_comments = new List <CoreValueComment>();
         }
         lst_comments.Add(comment);
     }
 }
Beispiel #2
0
        public static PMS.Model.DTO.Appraisal.CoreValueComment MapAppraisalCoreValueCommentEntityToDTO(PMS.Model.Context.PMS_APPRAISAL_CORE_VALUE_COMMENT entity)
        {
            PMS.Model.DTO.Appraisal.CoreValueComment obj_dto = new PMS.Model.DTO.Appraisal.CoreValueComment()
            {
                Id = entity.ID,
                Comments = entity.COMMENT,
                Commentor = CoreMapper.MapEmployeeEntityToDTO(entity.EMPLOYEE),
                CommentedTimestamp = entity.COMMENTED_TIMESTAMP,
                FormSaveOnly = entity.FORM_SAVE_ONLY
            };

            obj_dto.AppraisalCoreValue = entity.PMS_APPRAISAL_CORE_VALUE == null ? null : MapAppraisalCoreValueEntityToDTO(entity.PMS_APPRAISAL_CORE_VALUE, false);

            return obj_dto;
        }