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); } }