/// <summary> /// Execute an insert query over Db /// </summary> /// <returns></returns> public async Task <IEnumerable <T> > Get() { IEnumerable <T> result = null; return(await Task.Factory.StartNew(() => { string selQuery = _queryHelper.SelectQuery(); if (!string.IsNullOrEmpty(selQuery)) { result = _connection.Query <T>( selQuery, commandType: CommandType.Text, transaction: _unitOfWork.Transaction); } }).ContinueWith(x => result)); }