noti ถ้าหา user ไม่เจอให้ส่งว่าง
This commit is contained in:
parent
88def52391
commit
3e6db6a5ef
2 changed files with 4 additions and 2 deletions
|
|
@ -42,7 +42,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
|
|
||||||
if (profile == null)
|
if (profile == null)
|
||||||
{
|
{
|
||||||
throw new Exception(GlobalMessages.DataNotFound);
|
return new List<InboxResponse>();
|
||||||
|
// throw new Exception(GlobalMessages.DataNotFound);
|
||||||
}
|
}
|
||||||
|
|
||||||
var data = await _dbContext.Set<Inbox>()
|
var data = await _dbContext.Set<Inbox>()
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
|
|
||||||
if (profile == null)
|
if (profile == null)
|
||||||
{
|
{
|
||||||
throw new Exception(GlobalMessages.DataNotFound);
|
return new List<NotificationResponse>();
|
||||||
|
// throw new Exception(GlobalMessages.DataNotFound);
|
||||||
}
|
}
|
||||||
|
|
||||||
var data = await _dbContext.Set<Notification>()
|
var data = await _dbContext.Set<Notification>()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue