BookShop.Models.Order.CreateOrder C# (CSharp) Method

CreateOrder() public static method

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.
return 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;
        }