设备信息不存在
This commit is contained in:
parent
1bce08db4e
commit
d29d2ec6ee
@ -48,12 +48,12 @@ namespace VOL.WebApi.Filter
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查询设备信息是否存在
|
// 查询设备信息是否存在
|
||||||
var res = await _deviceAssocSchoolRepository.FindAsyncFirst(x => x.SchoolCode == schoolCode && x.Code == code);
|
//var res = await _deviceAssocSchoolRepository.FindAsyncFirst(x => x.SchoolCode == schoolCode && x.Code == code);
|
||||||
if (res == null)
|
//if (res == null)
|
||||||
{
|
//{
|
||||||
context.Result = new NotFoundObjectResult("设备信息不存在");
|
// context.Result = new NotFoundObjectResult("设备信息不存在");
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
|
|
||||||
// 执行下一个过滤器或操作
|
// 执行下一个过滤器或操作
|
||||||
await next();
|
await next();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user