Example #1
0
        public object ExamBody(
            dynamic obj
            )
        {
            string weightsum       = obj.weightsum;
            string BMI             = obj.BMI;
            string fatRate         = obj.fatRate;
            string muscle          = obj.muscle;
            string moisture        = obj.moisture;
            string boneMass        = obj.boneMass;
            string subcutaneousFat = obj.subcutaneousFat;
            string BMR             = obj.BMR;
            string proteinRate     = obj.proteinRate;
            string physicalAge     = obj.physicalAge;
            string weightScore     = obj.weightScore;
            string clientId        = obj.clientId;
            string result          = obj.result;
            string risk            = obj.risk;
            string advice          = obj.advice;
            var    examRet         = GetResultModel(result, risk, advice);

            ExamBLL.SaveBody(weightsum, BMI, fatRate, muscle,
                             moisture, boneMass, subcutaneousFat, BMR, proteinRate, physicalAge, weightScore,
                             clientId, examRet);
            return(new { Result = true });
        }