BookShop.Models.Order.CreateOrder C# (CSharp) Méthode

CreateOrder() public static méthode

Create a new Order object.
public static CreateOrder ( global id, global price, global status ) : Order
id global Initial value of the Id property.
price global Initial value of the Price property.
status global Initial value of the Status property.
Résultat Order
        public static Order CreateOrder(global::System.Int32 id, global::System.Decimal price, global::System.String status)
        {
            Order order = new Order();
            order.Id = id;
            order.Price = price;
            order.Status = status;
            return order;
        }