Beispiel #1
0
        public async Task <IActionResult> Find([FromQuery] string query)
        {
            if (string.IsNullOrWhiteSpace(query))
            {
                return(BadRequest());
            }
            DebtorsResponse deptors = await _deptorService.FindByFullName(query);

            return(Ok(deptors));
        }
Beispiel #2
0
        public async Task <IActionResult> GetGebtors()
        {
            DebtorsResponse deptors = await _deptorService.GetAll();

            return(Ok(deptors));
        }