コード例 #1
0
 public void SaveAsync()
 {
     Area.areaName = AreaName;
     //Area.id = App.userid;
     if (Area.stateId == null || Area.stateId.Length == 0)
     {
         App.Current.MainPage.DisplayAlert("", "Please Select State", "OK");
     }
     else if (Area.areaName == null || Area.areaName.Length == 0)
     {
         App.Current.MainPage.DisplayAlert("", "Please Enter Area Name", "OK");
     }
     else
     {
         SaveAreaModel saveAreaModel = new SaveAreaModel();
         saveAreaModel.userId   = App.userid;
         saveAreaModel.stateId  = Area.stateId;
         saveAreaModel.areaName = Area.areaName;
         web.SaveAreaEntry(saveAreaModel);
         // new CountryReportService((AreaEntryI)this).SaveAreaEntry(Area);
     }
 }