Пример #1
0
        public ActionResult Edit(int Id)
        {
            ViewBag.HeaderText = "Modify Room";
            obj          = BL_tblPropertyRoomMap.GetSingleRecordById(Id);
            obj.Mode     = "Edit";
            obj.SizeType = obj.sSizeType;
            decimal ft = (decimal)obj.dSizeSqft;
            decimal mt = (decimal)obj.dSizeMtr;

            if (obj.SizeType == "Sq.Mtr")
            {
                obj.dSizeSqft = mt;
                obj.dSizeMtr  = ft;
            }
            else
            {
                obj.dSizeSqft = ft;
                obj.dSizeMtr  = mt;
            }

            obj.AccessibilityItems           = BL_tblRoomAccessibilityM.GetRoomAccessibility(obj.sRoomAccessibilityIds);
            obj.BuildingcharacteristicsItems = BL_tblBuildingCharacteristicsM.GetBuildingCharacteristics(obj.sBuildingCharacteristicsIds);
            obj.OutdoorViewItems             = BL_tblRoomOutdoorViewM.GetRoomOutdoorViews(obj.sRoomOutdoorViewIds);
            return(PartialView("_PropertyRoom", obj));
        }
Пример #2
0
 public ActionResult AddNewRoom()
 {
     obj.Mode = "Add";
     obj.AccessibilityItems           = BL_tblRoomAccessibilityM.GetRoomAccessibility(obj.sRoomAccessibilityIds);
     obj.BuildingcharacteristicsItems = BL_tblBuildingCharacteristicsM.GetBuildingCharacteristics(obj.sBuildingCharacteristicsIds);
     obj.OutdoorViewItems             = BL_tblRoomOutdoorViewM.GetRoomOutdoorViews(obj.sRoomOutdoorViewIds);
     ViewBag.HeaderText = "Add Room";
     return(PartialView("_PropertyRoom", obj));
 }