public async Task <ResponseQuery> GetOperationByIdAsync(string id, CancellationToken ct = default(CancellationToken)) { var operation = OperationConverter.ConvertList(await _operationRepository.GetByIdAsync(id, ct)); return(operation); }
public async Task <ResponseQuery> GetAllOperationAsync(CancellationToken ct = default(CancellationToken)) { var operations = OperationConverter.ConvertList(await _operationRepository.GetAllAsync(ct)); return(operations); }