title: JsonRequestBehavior.AllowGet does not exist in current context
body: <p>I am using asp.net MVC core and I am going to read data from SQL in kendo drop-down list.
  I have installed Newtonsoft.Json library too. I see drop-down list but I can't load data in my drop-down list. my code is as below:</p>
  
  <p>my model is located in models>Airports.cs:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Threading.Tasks;
  
  namespace plan_1.Models
  {
  public class Airport: BaseEntity  
     { 
      public int Id { get; set; }
      public string Iata { get; set; }
      public string Icao { get; set; }
      public string LogoUrl { get; set; }
      public int IsBased { get; set; }
      public int CityId { get; set; }
      public virtual City City { get; set; }
  
      public Airport()
      {
          this.Terminals = new 
            HashSet&lt;Terminal&gt;();
      }
       public ICollection&lt;Terminal&gt; Terminals 
       { get; set; }
     }
  }
  </code></pre>
  
  <p>My controller is located in Controllers>planController.cs :</p>
  
  <pre><code>using System.Linq;
  using Microsoft.AspNetCore.Mvc;
  using plan_1.Models;
  using Newtonsoft.Json;
  namespace plan_1.Controllers
  {
   public class planController : Controller
   {        
      public ActionResult Index()
      {
          return View();
      }
      public JsonResult GetAirPort()
      {
        plan_1Context dbContext = new 
        plan_1Context();
  
          return 
          Json(dbContext.AirPorts.Select(O =&gt; 
          new { _Id = O.Id, Origin = O.Iata 
          }), 
       JsonRequestBehavior.AllowGet);
      }
    }
  }
  </code></pre>
  
  <p>and my view located in views>plan>index.cshtml is as below:</p>
  
  <pre><code>@model IEnumerable&lt;plan_1.Models.Airport&gt;
  @{
   ViewData["Title"] = "Planing";
   }
  
   &lt;div&gt;
  
      &lt;h4&gt;Origin:&lt;/h4&gt;
  
  
      @(Html.Kendo().DropDownList()
                  .Name("Origin")
                  .HtmlAttributes(new { style 
      = "width:100%" })
                  .OptionLabel("Select 
       category...")
                  .DataTextField("Iata")
                  .DataValueField("Id")
                  .DataSource(source =&gt;
                  {
                      source.Read(read =&gt;
                      {                  
  read.Action("GetAirPorts", 
         "planController");
                      });
                  })
  
      )
  &lt;/div&gt;
  
  
  also, I should mix the airplane model by 
  the plan model, I think I should use the 
  view model to mix them.
  
  Please help what should I do? It is days 
  that I am looking for the answer
  </code></pre>