public JsonResult ApplyDbData() { MSGReturnModel <IEnumerable <ICDCItem> > result = new MSGReturnModel <IEnumerable <ICDCItem> >(); result.RETURN_FLAG = false; var _detail = (List <CDCBillViewModel>)Cache.Get(CacheList.CDCBILLData); if (!_detail.Any(x => x.vAFTFlag)) { result.DESCRIPTION = "無申請任何資料"; } else if (Cache.IsSet(CacheList.CDCSearchViewModel)) { CDCSearchViewModel data = (CDCSearchViewModel)Cache.Get(CacheList.CDCSearchViewModel); result = Bill.CDCApplyAudit(_detail.Where(x => x.vAFTFlag).ToList(), data); if (result.RETURN_FLAG) { Cache.Invalidate(CacheList.CDCCAData); Cache.Set(CacheList.CDCCAData, result.Datas); } } else { result.DESCRIPTION = Ref.MessageType.login_Time_Out.GetDescription(); } return(Json(result)); }