コード例 #1
0
        internal static FloorPlanVm MapToFloorPlanVm(this FloorPlan floorPlan)
        {
            FloorPlanVm floorPlanQuickViewVm = floorPlan.MapToFloorPlanQuickViewVm(new FloorPlanVm()) as FloorPlanVm;

            if (floorPlanQuickViewVm != null)
            {
                floorPlanQuickViewVm.Deposit        = floorPlan.Deposit.PriceCaption();
                floorPlanQuickViewVm.ApplicationFee = floorPlan.ApplicationFee.PriceCaption();
                floorPlanQuickViewVm.PetDeposit     = floorPlan.PetDeposit.PriceCaption();
                floorPlanQuickViewVm.Amenities      = floorPlan.Amenities;
            }
            return(floorPlanQuickViewVm);
        }
コード例 #2
0
 internal static FloorPlanQuickViewVm MapToFloorPlanQuickViewVm(this FloorPlan floorPlan)
 {
     return(floorPlan.MapToFloorPlanQuickViewVm(null));
 }