Example #1
0
        public override StaffInps TranslateToModel(STAFF_INPS entity)
        {
            try
            {
                StaffInps model = null;
                if (entity != null)
                {
                    model           = new StaffInps();
                    model.Id        = entity.Staff_Inps_ID;
                    model.Appraisal = appraisalTranslator.Translate(entity.APPRAISAL_HEADER);
                    model.Inps      = inpsTranslator.Translate(entity.INPS);
                    model.Score     = entity.Score;
                }

                return(model);
            }
            catch (Exception)
            {
                throw;
            }
        }
        public override StaffAssessment TranslateToModel(STAFF_POTENTIAL_ASSESSMENT entity)
        {
            try
            {
                StaffAssessment model = null;
                if (entity != null)
                {
                    model           = new StaffAssessment();
                    model.Id        = entity.Staff_Potential_Assessment_Id;
                    model.Appraisal = appraisalTranslator.Translate(entity.APPRAISAL_HEADER);
                    model.Period    = assessmentPeriodTranslator.Translate(entity.POTENTIAL_ASSESSMENT_PERIOD);
                    model.Score     = entity.Score;
                }

                return(model);
            }
            catch (Exception)
            {
                throw;
            }
        }