Exemplo n.º 1
0
        public async Task <IActionResult> DenyPayNotification(long id)
        {
            try
            {
                await _debtService.DenyPayNotificationAsync(id);

                return(Ok());
            }
            catch (UnauthorizedAccessException)
            {
                return(Unauthorized());
            }
            catch (Exception e)
            {
                return(BadRequest(new { e.Message }));
            }
        }