5 changed files with 39 additions and 1 deletions
@ -0,0 +1,25 @@ |
|||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue