BookShop.Models.OrderLine.CreateOrderLine C# (CSharp) Method

CreateOrderLine() public static method

Create a new OrderLine object.
public static CreateOrderLine ( global bookId, global orderId, global quantity ) : OrderLine
bookId global Initial value of the BookId property.
orderId global Initial value of the OrderId property.
quantity global Initial value of the Quantity property.
return OrderLine
        public static OrderLine CreateOrderLine(global::System.Int32 bookId, global::System.Int32 orderId, global::System.Int32 quantity)
        {
            OrderLine orderLine = new OrderLine();
            orderLine.BookId = bookId;
            orderLine.OrderId = orderId;
            orderLine.Quantity = quantity;
            return orderLine;
        }