25 lines
532 B
25 lines
532 B
3 years ago
|
using System;
|
||
|
using System.Web.Mvc;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
using Pingchuan.BeijingSafeguard.BLL;
|
||
|
using Pingchuan.BeijingSafeguard.Model;
|
||
|
|
||
|
namespace Pingchuan.BeijingSafeguard.App.Controllers
|
||
|
{
|
||
|
public class ConfigController : Controller
|
||
|
{
|
||
|
// GET: Config
|
||
|
public ActionResult Index()
|
||
|
{
|
||
|
return View();
|
||
|
}
|
||
|
|
||
|
[HttpPost]
|
||
|
public JsonResult All()
|
||
|
{
|
||
|
List<Config> configs = ConfigBLL.All();
|
||
|
return Json(configs);
|
||
|
}
|
||
|
}
|
||
|
}
|