DeviceMessages-hez backend fejlesztése
This commit is contained in:
@@ -471,6 +471,30 @@ namespace WorkFlowCheck.API.Controllers
|
||||
|
||||
return retVal;
|
||||
}
|
||||
[HttpGet("DeviceMessageReadUnreadedRole/{roleId}")]
|
||||
public async Task<ApiResponseDTO<List<DeviceMessageDTO>>> DeviceMessageReadUnreadedRole(int roleId)
|
||||
{
|
||||
var retVal = new ApiResponseDTO<List<DeviceMessageDTO>>()
|
||||
{
|
||||
IsSuccess = true,
|
||||
};
|
||||
|
||||
var response = await _syncService.DeviceMessageReadUnreadedRole(roleId);
|
||||
|
||||
if (response != null)
|
||||
{
|
||||
|
||||
retVal.IsSuccess = true;
|
||||
retVal.Data = response;
|
||||
}
|
||||
else
|
||||
{
|
||||
retVal.IsSuccess = false;
|
||||
retVal.Errors.Add("No data!");
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
[HttpGet("Download")]
|
||||
public async Task<IActionResult> DownloadAPKFileAsync()
|
||||
|
||||
Reference in New Issue
Block a user