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