public IHttpActionResult Get(string id)
        {
            try{
                IList <SymptomExt> response = new List <SymptomExt>();
                //获取登录信息
                UserInfo currentUser = new UserInfoService().GetCurrentUser();
                if (currentUser == null)
                {
                    return(Ok(response));
                }

                string userId = currentUser.UserId;
                IEnumerable <Symptom> list = bll.GetList(p => p.USERID == userId);

                SymptomRecordBLL            strBLL     = new SymptomRecordBLL();
                IEnumerable <SymptomRecord> symRecords = strBLL.GetList(p => p.USERID == userId);
                foreach (SymptomRecord item in symRecords)
                {
                    SymptomExt ext = new SymptomExt();
                    ext.SymptomID    = item.SymptomId;
                    ext.SymptomName  = GetSymptomName(list, item.SymptomId);
                    ext.SymptomDate  = item.SymptomDate;
                    ext.SymptomLevel = item.SymptomLevel == "" ? "0" : item.SymptomLevel;

                    response.Add(ext);
                }

                return(Ok(response.OrderBy(p => p.SymptomDate)));
            }catch (Exception ex) {
                return(BadRequest(ex.ToString()));
            }
        }
        public IHttpActionResult Get()
        {
            IList <SymptomExt> response = new List <SymptomExt>();

            //获取登录信息
            UserInfo currentUser = new UserInfoService().GetCurrentUser();

            if (currentUser == null)
            {
                return(Ok(response));
            }
            string userId = currentUser.UserId;
            IEnumerable <Symptom> list = bll.GetList(p => p.USERID == userId);

            foreach (Symptom item in list)
            {
                SymptomExt ext = new SymptomExt();
                ext.UserId        = item.UserId;
                ext.SymptomID     = item.ID;
                ext.SymptomName   = item.SymptomName;
                ext.DictsymptomId = item.DictsymptomId;

                response.Add(ext);
            }

            return(Ok(response));
        }