23 lines
626 B
C#
23 lines
626 B
C#
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 UtilitySubSectorController : ApiController
|
|
{
|
|
private OSSDBContext myContext = new OSSDBContext();
|
|
[HttpGet]
|
|
public HttpResponseMessage ShowSubSector(DataSourceLoadOptions loadOptions)
|
|
{
|
|
return Request.CreateResponse(DataSourceLoader.Load(myContext.SubSectors.OrderBy(t=>t.SubSectorName), loadOptions));
|
|
}
|
|
}
|
|
}
|