private async void SearchNoticeReadersList(string noticeId)
        {
            try
            {
                _commonFun.ShowLoading("查询中...");
                var now    = DateTime.Now.ToString();
                var result = await _notifiMngService.SearchNoticeReaders(noticeId, CommonContext.Account.UserId);

                if (null != result && result.ResultCode == Module.ResultType.Success)
                {
                    var noticeReaderList = JsonConvert.DeserializeObject <List <NotifiReadersDto> >(result.Body);

                    if (noticeReaderList != null && noticeReaderList.Count > 0)
                    {
                        NoticeReaderList = noticeReaderList;
                    }
                    else
                    {
                        _commonFun.AlertLongText(result.Msg);
                    }
                }
            }
            catch (OperationCanceledException)
            {
                _commonFun.HideLoading();
                _commonFun.AlertLongText("请求超时,请重试");
            }
            catch (Exception)
            {
                _commonFun.HideLoading();
                _commonFun.AlertLongText("查询异常,请重试");
            }
            finally
            {
                _commonFun.HideLoading();
            }
        }
Пример #2
0
 public async Task <APIResult> GetReaders()
 {
     return(await _notifiMngService.SearchNoticeReaders(Request.Query["noticeId"], Request.Query["inUserId"]));
 }