Пример #1
0
        /// <summary>
        /// 查询sim卡黑名单
        /// </summary>
        /// <param name="json"></param>
        /// <returns></returns>
        public byte[] QueryBlacklist(string json)
        {
            JT808ResultDto <List <string> > resultDto = new JT808ResultDto <List <string> >();

            try
            {
                resultDto.Data = BlacklistManager.GetAll();
                resultDto.Code = JT808ResultCode.Ok;
            }
            catch (Exception ex)
            {
                resultDto.Data    = null;
                resultDto.Code    = JT808ResultCode.Error;
                resultDto.Message = ex.StackTrace;
            }
            return(CreateHttpResponse(resultDto));
        }
Пример #2
0
        public ActionResult <JT808ResultDto <List <string> > > BlacklistGetAll()
        {
            JT808ResultDto <List <string> > resultDto = new JT808ResultDto <List <string> >();

            try
            {
                resultDto.Code = JT808ResultCode.Ok;
                resultDto.Data = BlacklistManager.GetAll();
            }
            catch (Exception ex)
            {
                resultDto.Data    = new List <string>();
                resultDto.Code    = JT808ResultCode.Error;
                resultDto.Message = ex.StackTrace;
            }
            return(resultDto);
        }