public async Task <IActionResult> GetPayNotifications() { try { var data = await _debtService.GetPayNotificationsAsync(); return(Ok(data)); } catch (UnauthorizedAccessException) { return(Unauthorized()); } catch (Exception e) { return(BadRequest(new { e.Message })); } }