public static PMS.Model.DTO.Master.Stage MapStageEntityToDTO(PMS.Model.Context.PMS_MST_STAGE entity) { PMS.Model.DTO.Master.Stage obj_dto = new DTO.Master.Stage() { Id = entity.ID, Name = entity.NAME, Description = entity.DESCRIPTION, SortOrder = entity.SORT_ORDER, Active = entity.ACTIVE }; return obj_dto; }
public static PMS.Model.DTO.Master.Stage MapAppraisalStageDTOToStageDTO(PMS.Model.DTO.Appraisal.Stage dto) { PMS.Model.DTO.Master.Stage obj_stage = new DTO.Master.Stage() { Id = Convert.ToInt32(dto.StageId), Name = dto.Name, Description = dto.Description }; return obj_stage; }