isdaviddong
11/20/2017 - 8:50 AM

bmi.cs

        [ExceptionNotify(LineTo="UserId")]
        [Logging(LoggingTo=File)]
        //計算BMI
        public Decimal Calculate()
        {
            Decimal result = 0;

                Decimal height = (Decimal)Height / 100;
                result = Weight / (height * height);
          
            return result;
        }