Fix empty response
This commit is contained in:
parent
e5d2724f8c
commit
16d8c25ea0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user