public JsonResult GetCountry(int id)
 {
     if (Session["Login"] != null)
     {
         var        counties = CountyandCityManagement.getCounty(id);
         SelectList list     = new SelectList(counties, "CountyID", "CountyName");
         return(Json(list, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public JsonResult GetCounty(int id)
 {
     if (Session["Login"] != null && Session["Company"] != null)
     {
         gelen        = (AppUsers)Session["Login"];
         companybilgi = (Company)Session["Company"];
         var        counties = countyAndCityManagement.getCounty(id);
         SelectList list     = new SelectList(counties, "CountyID", "CountyName");
         return(Json(list, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(null);
     }
 }