TrainTracker.Web.Models.RailCarHistory.CreateRailCarHistory C# (CSharp) Method

CreateRailCarHistory() public static method

Create a new RailCarHistory object.
public static CreateRailCarHistory ( global historyID, global carID, global yardID, global departmentId, global historyTypeId ) : RailCarHistory
historyID global Initial value of the HistoryID property.
carID global Initial value of the CarID property.
yardID global Initial value of the YardID property.
departmentId global Initial value of the DepartmentId property.
historyTypeId global Initial value of the HistoryTypeId property.
return RailCarHistory
        public static RailCarHistory CreateRailCarHistory(global::System.Int32 historyID, global::System.Int32 carID, global::System.Int32 yardID, global::System.Int32 departmentId, global::System.Int32 historyTypeId)
        {
            RailCarHistory railCarHistory = new RailCarHistory();
            railCarHistory.HistoryID = historyID;
            railCarHistory.CarID = carID;
            railCarHistory.YardID = yardID;
            railCarHistory.DepartmentId = departmentId;
            railCarHistory.HistoryTypeId = historyTypeId;
            return railCarHistory;
        }