public static New.CustomAmenity ToNewCustomAmenity(this CustomAmenity amen, long buildingId) { return new New.CustomAmenity { AmenityId = amen.AmenityId, CreateDate = amen.CreateDate, CreatedBy = amen.CreatedBy, IsDeleted = amen.IsDeleted, UpdateDate = amen.UpdateDate, UpdatedBy = amen.UpdatedBy, BuildingId = buildingId, Name = amen.Name }; }