async

        public async Task<OperationResult> CheckRfidAsync(RfidInfo rficInfo)
        {
            using (DbScopeFactory.CreateReadOnly())
            {
                OperationResult result = OperationResult.NoChanged;
                var ischeck = Count(p => p.SerialNumber == rficInfo.epc) == 1;
                if (ischeck)
                {
                    result = OperationResult.Success;
                }
                return await Task.FromResult(result);
            }
        }

 

posted @ 2016-08-11 13:09  shiningrise  阅读(156)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css