tiseza_oss_live/Controllers/WardUtilityController.cs

23 lines
584 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 WardUtilityController : ApiController
{
private OSSDBContext myContext = new OSSDBContext();
[HttpGet]
public HttpResponseMessage ShowWards(DataSourceLoadOptions loadOptions)
{
return Request.CreateResponse(DataSourceLoader.Load(myContext.Wards, loadOptions));
}
}
}