public async Task <ActionResult <CustomerModel> > PostCustomerDetails(CustomerModel item)
        {
            _context.CustomerList.Add(item);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetCutomerList), new { id = item.ID }, item));
        }
Beispiel #2
0
 public void InsertProductItem(Product item)
 {
     _context.ProductItems.Add(item);
     _context.SaveChangesAsync();
 }