//This function will load BMI related details of the user on loading the dashboard public void MonitorHealthHelper() { UserInfoBL userInfoBL = new UserInfoBL(); UserInfoDO userInfo = Session["UserInfo"] as UserInfoDO; ViewBag.Name = userInfo.UserName; double height = Convert.ToDouble(userInfo.UserHeight); double weight = Convert.ToDouble(userInfo.UserWeight); int age = Convert.ToInt32(userInfo.UserAge); string StatusMonitorHealth = userInfoBL.BMICalculation(height, weight, age); String[] strlist = StatusMonitorHealth.Split(); ViewBag.Status = strlist[0]; ViewBag.BMI = strlist[1]; }