persistence.SparePart.CreateSparePart C# (CSharp) Method

CreateSparePart() public static method

Create a new SparePart object.
public static CreateSparePart ( global partId, global name, global price, global isActive ) : SparePart
partId global Initial value of the PartId property.
name global Initial value of the Name property.
price global Initial value of the Price property.
isActive global Initial value of the IsActive property.
return SparePart
        public static SparePart CreateSparePart(global::System.Int32 partId, global::System.String name, global::System.Decimal price, global::System.Boolean isActive)
        {
            SparePart sparePart = new SparePart();
            sparePart.PartId = partId;
            sparePart.Name = name;
            sparePart.Price = price;
            sparePart.IsActive = isActive;
            return sparePart;
        }