1
0
mirror of synced 2025-01-18 22:24:06 +01:00

Fix empty response

This commit is contained in:
asesidaa 2022-08-01 16:27:37 +08:00
parent e5d2724f8c
commit 16d8c25ea0

View File

@ -130,8 +130,13 @@ public class ApiController : WebApiController
return ToUserDetail(card);
}
private UserDetail ToUserDetail(Card card)
private UserDetail? ToUserDetail(Card card)
{
if (!cardSqLiteConnection.Table<CardDetail>().Select(detail => detail.CardId == card.CardId).Any())
{
return null;
}
var userDetail = new UserDetail
{
CardId = card.CardId,