public async Task <IEnumerable <string> > Handle(GetMakes message, CancellationToken cancellationToken) { using (var connection = _iocDbConnectionFactory.GetReadOnlyConnection()) { return(await connection.QueryAsync <string>(_sql)); } }
public async Task <IEnumerable <Make> > Handle(GetMakes message, CancellationToken cancellationtoken) { using (var connection = _iocDbConnectionFactory.GetReadOnlyConnection()) { return(await connection.QueryAsync <Make>(sproc, commandType : CommandType.StoredProcedure)); } }