Add project files.
This commit is contained in:
24
DXApp.TemplateKitProject/Controllers/SampleDataController.cs
Normal file
24
DXApp.TemplateKitProject/Controllers/SampleDataController.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using DevExtreme.AspNet.Data;
|
||||
using DevExtreme.AspNet.Mvc;
|
||||
using DXApp.TemplateKitProject.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DXApp.TemplateKitProject.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
public class SampleDataController : Controller
|
||||
{
|
||||
|
||||
[HttpGet]
|
||||
public object Get(DataSourceLoadOptions loadOptions)
|
||||
{
|
||||
return DataSourceLoader.Load(SampleData.Orders, loadOptions);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user