public async ValueTask <Product> GetById(int id) { return(await WithConnection(async conn => { var query = await _dapperHelper.GetById <Product>(conn, id, _commandText.GetProductById); return query; })); }
public Student GetStudent(int id) { return(_dapperHelper.GetById <Student>(id)); }