Ejemplo n.º 1
0
        public async Task <IActionResult> GetDebtChangesById([FromQuery] ChangeSearchDTO model)
        {
            try
            {
                var data = await _debtService.GetDebtChangesByIdAsync(model);

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