tiseza_oss_live/Controllers/UtilitiesDataController.cs

26 lines
601 B
C#

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