JXMovies/CMS/JXCMS.CMS.Movie/Admin/Controllers/SettingsController.cs

26 lines
670 B
C#
Raw Normal View History

2020-02-09 19:10:05 +08:00
using JXCMS.CMS.Attribute;
using JXCMS.CMS.Entity;
using JXCMS.CMS.Movie.Entity;
using Microsoft.AspNetCore.Mvc;
namespace JXCMS.CMS.Admin.Controllers
{
[Area("Admin")]
[AdminAuthentication]
public class SettingsController : Controller
{
// GET
public IActionResult Index()
{
ViewBag.title = "系统设置";
ViewBag.settings = SettingsEntity.Where(x => x.Type == "Settings").ToList();
return View();
}
public IActionResult System()
{
ViewBag.settings = SettingsEntity.Where(x => x.Type == "System").ToList();
return View();
}
}
}