ลงเวลาถ้าไม่เจอข้อมูลส่ง200
This commit is contained in:
parent
9880d6530b
commit
9ed48d93b4
1 changed files with 4 additions and 4 deletions
|
|
@ -522,10 +522,10 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
})
|
||||
.ToList();
|
||||
|
||||
if (data == null || data.Count == 0)
|
||||
{
|
||||
return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound);
|
||||
}
|
||||
// if (data == null || data.Count == 0)
|
||||
// {
|
||||
// return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound);
|
||||
// }
|
||||
|
||||
return Success(new { data = data, total = data.Count });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue