public async Task <ProductEntityDomain> GetProductAsync(string id) { var resultData = await _productSqlDataContext.Connection.GetAsync <ProductEntityData>(id); return(ProductEntityData.ToEntityDomain(resultData)); }
public async Task <List <ProductEntityDomain> > GetAllProductsAsync() { var resultData = await _productSqlDataContext.Connection.GetAllAsync <ProductEntityData>(); return(resultData.Select(r => ProductEntityData.ToEntityDomain(r)).ToList()); }