public async Task <SalesResponse> FindTransactionByIdAsync(int id) { try { var existingSales = await _salesRepository.FindTransactionByIdAsync(id); if (existingSales == null) { return(new SalesResponse("Sales Transaction not found")); } return(new SalesResponse(existingSales)); } catch (Exception ex) { return(new SalesResponse($"An error occurred when finding the Sales Transaction: {ex.Message}")); } }