Untitled

 avatar
unknown
plain_text
a year ago
473 B
7
Indexable
public async Task<List<Product>> GetByGmail(string gmail)
{
    List<Product> products = await _context.Products
                                        .Join(_context.Carts.Where(c => c.EmailId == gmail),
                                              p => p.ProductId,
                                              c => c.ProductId,
                                              (p, c) => p)
                                        .ToListAsync();

    return products;
}
Editor is loading...
Leave a Comment