/// <summary> /// Maps the building history to building history API dto. /// </summary> /// <returns>The building history to building history API dto.</returns> /// <param name="buildingHistory">Building history.</param> public BuildingHistoryApiDto MapBuildingHistoryToBuildingHistoryApiDto(BuildingHistory buildingHistory) { return(new BuildingHistoryApiDto() { BuildingHistoryId = buildingHistory.BuildingHistoryId, BuildingId = buildingHistory.Building.BuildingId, HasSeen = buildingHistory.HasSeen, UserId = buildingHistory.User.UserId }); }
protected override void InitializeHistory() { string[] dataToBeSaved = { loadTitle, treatmentRateTitle, efficiencyTitle, availableGWTitle }; buildingHistory = new BuildingHistory(dataToBeSaved, constructionDate); }
protected override void InitializeHistory() { string[] dataToBeSaved = { loadTitle, powerProductionTitle, efficiencyTitle }; buildingHistory = new BuildingHistory(dataToBeSaved, constructionDate); }
//Building History handling methods protected virtual void InitializeHistory() { buildingHistory = new BuildingHistory(null, constructionDate); }