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