public EditHostelVM(string hostelid, string hostelname, string areaid, string zipcode, string address, string phone, string email, string genderhostel) { //IsCheck1 = true; HostelModel.id = hostelid; HostelModel.hostelName = hostelname; HostelModel.areaId = areaid; HostelModel.zipCode = zipcode; HostelModel.addressLine1 = address; HostelModel.phoneNo = phone; HostelModel.email = email; HostelModel.hostelForGender = genderhostel; if (HostelModel.hostelForGender == "Female") { IsCheck2 = true; } else { IsCheck1 = true; } updateHostel = new UpdateHostel(); AreaIds = areaid; Check1Clicked = new Command(check1Clicked); Check2Clicked = new Command(check2Clicked); web = new MasterServices((MasterI)this, (EditHostelI)this); web.GetAllArea(); }
public async void PostHostelNameSuccess(string resultHostel) { updateHostel = new UpdateHostel(); HostelModel = new HostelModel(); await App.Current.MainPage.DisplayAlert("HMS", resultHostel, "OK"); OnPropertyChanged("updateHostel"); OnPropertyChanged("HostelModel"); }