mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
封装后台js框架,编写文档模块的列表、新增修改
This commit is contained in:
@ -12,6 +12,7 @@ using FreeSql.Site.UI.Common;
|
||||
using FreeSql.Site.UI.Controllers;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
|
||||
namespace FreeSql.Site.UI.Areas.Admin.Controllers
|
||||
{
|
||||
@ -80,6 +81,17 @@ namespace FreeSql.Site.UI.Areas.Admin.Controllers
|
||||
});
|
||||
}
|
||||
|
||||
public ActionResult DocContentEditModule(string id)
|
||||
{
|
||||
ViewBag.DocumentTypeList = DocumentTypeDAL.Query(w => w.Status == 1).Select(s => new SelectListItem { Text = s.TypeName, Value = s.ID.ToString() }).ToList();
|
||||
DocumentContent model = new DocumentContent();
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
model = DocumentContentDAL.GetByOne(w => w.ID == 1);
|
||||
}
|
||||
return View(model);
|
||||
}
|
||||
|
||||
// POST: Documents/Create
|
||||
[HttpPost]
|
||||
//[ValidateAntiForgeryToken]
|
||||
|
Reference in New Issue
Block a user