public async Task <IActionResult> GetCheques() { List <Cheque> cheques = await _chequeRepository.GetAllAsync(); var response = new List <ChequeDto>(); foreach (var cheque in cheques) { response.Add(new ChequeDto(cheque)); } return(Ok(response)); }
public async Task <IActionResult> GetCheques() { List <Cheque> cheques = await _chequeRepository.GetAllAsync(); var response = new List <ChequeDto>(); foreach (var cheque in cheques) { response.Add(new ChequeDto(cheque)); } return(Ok(response)); }