public IActionResult GetByUser([FromQuery] int userId) { try { var debts = _debtService.GetListByUser(userId); return(Ok(debts)); } catch (Exception e) { return(BadRequest(e.Message)); } }