public JsonResult Reject(List <string> AplyNos, string apprDesc) { MSGReturnModel <List <TreasuryAccessApprSearchDetailViewModel> > result = new MSGReturnModel <List <TreasuryAccessApprSearchDetailViewModel> >(); result.RETURN_FLAG = false; result.DESCRIPTION = Ref.MessageType.login_Time_Out.GetDescription(); if (AplyNos.Any() && Cache.IsSet(CacheList.TreasuryAccessApprSearchDetailViewData)) { var datas = (List <TreasuryAccessApprSearchDetailViewModel>)Cache.Get(CacheList.TreasuryAccessApprSearchDetailViewData); foreach (var item in datas.Where(x => AplyNos.Contains(x.vAPLY_NO))) { item.vCheckFlag = true; } var searchData = (TreasuryAccessApprSearchViewModel)Cache.Get(CacheList.TreasuryAccessApprSearchData); result = TreasuryAccess.Reject(searchData, datas, apprDesc); if (result.RETURN_FLAG) { Cache.Invalidate(CacheList.TreasuryAccessApprSearchDetailViewData); Cache.Set(CacheList.TreasuryAccessApprSearchDetailViewData, result.Datas); } } return(Json(result)); }