Ejemplo n.º 1
0
 public void SaveAsync()
 {
     //  Hostel.hostelName = HostelName;
     if (FloorData.hostelId == null || FloorData.hostelId.Length == 0)
     {
         App.Current.MainPage.DisplayAlert("", "Please Select Hostel", "OK");
     }
     else if (FloorData.blocks_id == null || FloorData.blocks_id.Length == 0)
     {
         App.Current.MainPage.DisplayAlert("", "Please Select Block", "OK");
     }
     else if (FloorData.floorName == null || FloorData.floorName.Length == 0)
     {
         App.Current.MainPage.DisplayAlert("", "Please Enter Floor Name", "OK");
     }
     else if (FloorData.noOfRooms == null || FloorData.noOfRooms.Length == 0)
     {
         App.Current.MainPage.DisplayAlert("", "Please Enter Room No", "OK");
     }
     else
     {
         web.SaveFloorEntry(FloorData);
     }
 }