public UpdateOrder ( Core.Order Order ) : void | ||
Order | Core.Order | |
return | void |
public void UpdateOrder(Order Order)
{
_context.Entry(Order).State = System.Data.Entity.EntityState.Modified;
_context.SaveChanges();
}
}
public void UpdateShipAddress(int OrderId, string Address, string City, string Region, string PostalCode, string Country) { // Add your operation implementation here var repo = new OrderRepository(); var order = repo.GetOrderById(OrderId); order.ShipAddress = Address; order.ShipCity = City; order.ShipRegion = Region; order.ShipPostalCode = PostalCode; order.ShipCountry = Country; repo.UpdateOrder(order); return; }