You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
716 B

3 years ago
using PetaPoco;
3 years ago
using System.Web.Mvc;
3 years ago
using System.Collections.Generic;
3 years ago
3 years ago
using Pingchuan.BeijingSafeguard.BLL;
using Pingchuan.BeijingSafeguard.Model;
3 years ago
namespace Pingchuan.BeijingSafeguard.App.Controllers
{
3 years ago
public class ConfigManagementController : BaseController
3 years ago
{
// GET: ConfigManagement
public ActionResult Index()
{
return View();
}
3 years ago
3 years ago
[HttpPost]
public int Update(Config config)
3 years ago
{
return ConfigBLL.Update(config);
}
3 years ago
[HttpPost]
3 years ago
public JsonResult Query(int page, int rows)
3 years ago
{
3 years ago
List<Config> configs = ConfigBLL.Query(page, rows);
3 years ago
return Json(configs);
3 years ago
}
3 years ago
}
}