ReadModel.CustomerItem.CreateCustomerItem C# (CSharp) Method

CreateCustomerItem() public static method

Create a new CustomerItem object.
public static CreateCustomerItem ( global id, global name, global canRent, global canReturn ) : CustomerItem
id global Initial value of the Id property.
name global Initial value of the Name property.
canRent global Initial value of the CanRent property.
canReturn global Initial value of the CanReturn property.
return CustomerItem
        public static CustomerItem CreateCustomerItem(global::System.Guid id, global::System.String name, global::System.Boolean canRent, global::System.Boolean canReturn)
        {
            CustomerItem customerItem = new CustomerItem();
            customerItem.Id = id;
            customerItem.Name = name;
            customerItem.CanRent = canRent;
            customerItem.CanReturn = canReturn;
            return customerItem;
        }