Пример #1
0
 public AreaVM()
 {
     CountryVisible = false;
     StateVisible   = false;
     AreaVisible    = false;
     CountryList    = new CountryModel();
     web            = new MasterServices((CountryI)this, (AreaI)this);
     // send id into base 64 formate
     web.GetCountryDetails();
 }
Пример #2
0
 public EditAreaVM(string areaid, string areaname, string stateid)
 {
     updateAre     = new UpdateAreModel();
     Area.id       = areaid;
     Area.areaName = areaname;
     Area.stateId  = stateid;
     web           = new MasterServices((CountryI)this, (EditAreaI)this);
     web.StateListForEditing(stateid);
     CountryList = new CountryModel();
     web.GetCountryDetails();
 }