using DevExtreme.AspNet.Data; using DevExtreme.AspNet.Mvc; using OSS.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace OSS.Controllers { public class UtilitiesDistrictController : ApiController { private OSSDBContext myContext = new OSSDBContext(); [HttpGet] public HttpResponseMessage ShowDistrict(DataSourceLoadOptions loadOptions) { return Request.CreateResponse(DataSourceLoader.Load(myContext.Districts, loadOptions)); } } }