public Licencesupdateviewmodel()
 {
     _selectedState = null;
     //_selectedlicencetype = null;
     filedata = new Plugin.FilePicker.Abstractions.FileData();
     if (SelectedLicenseType == null)
     {
         SelectedLicenseType = new licencetype();
     }
 }
Beispiel #2
0
 public JsonResult GetAllstate()
 {
     using (DBEntities dben = new DBEntities())
     {
         List <states2>    objstate = dben.states2.ToList();
         List <statemodel> mode     = new List <statemodel>();
         foreach (var s in objstate)
         {
             statemodel model = new statemodel();
             model.StateId   = s.StateId;
             model.StateName = s.StateName;
             mode.Add(model);
         }
         return(Json(mode, JsonRequestBehavior.AllowGet));
     }
 }