public async Task <int> SendOrder(int id) { Order o = GetOrder(id); o.OrderStatus = "Delivered"; o.ShippingDate = DateTime.Now; deckelShopContext.Update(GetOrder(id)); return(await deckelShopContext.SaveChangesAsync()); }
public async Task <int> EditCustomer(Customer customer) { deckelShopContext.Update(customer); return(await deckelShopContext.SaveChangesAsync()); }
public async Task <int> EditProduct(Product product) { deckelShopContext.Update(product); return(await deckelShopContext.SaveChangesAsync()); }