public async Task <int> SaveAsync(Product productDetails) { await _context.AddAsync(productDetails); return(await _context.SaveChangesAsync()); }
public async Task AddAsync(T t) { await _context.AddAsync(t); }
public async Task <int> SaveAsync(Product productDetails) { await _context.AddAsync(productDetails); return(await _context.SaveChangesAsync()); }
public async Task AddAsync(T t) { await _context.AddAsync(t); }