方法参数FormCollection统一修改为IFormCollection

This commit is contained in:
xxred
2018-11-07 10:27:56 +08:00
parent a391f3d358
commit 787a76798f
3 changed files with 3 additions and 3 deletions
@@ -156,7 +156,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
} }
[HttpPost] [HttpPost]
[MyAuthorize("edit", "guestbook", "JSON")] [MyAuthorize("edit", "guestbook", "JSON")]
public IActionResult EditGuestbook(FormCollection fc) public IActionResult EditGuestbook(IFormCollection fc)
{ {
string id = fc["Id"]; string id = fc["Id"];
if (!Utils.IsInt(id) || int.Parse(id) <= 0) if (!Utils.IsInt(id) || int.Parse(id) <= 0)
@@ -608,7 +608,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
//执行添加用户组 //执行添加用户组
[HttpPost] [HttpPost]
[MyAuthorize("add", "memberrole", "JSON")] [MyAuthorize("add", "memberrole", "JSON")]
public IActionResult AddMemberRole(FormCollection fc) public IActionResult AddMemberRole(IFormCollection fc)
{ {
string RoleName = fc["RoleName"]; string RoleName = fc["RoleName"];
string RoleDescription = fc["RoleDescription"]; string RoleDescription = fc["RoleDescription"];
@@ -63,7 +63,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
[MyAuthorize( "add", "eventkey", "JSON")] [MyAuthorize( "add", "eventkey", "JSON")]
[HttpPost] [HttpPost]
public IActionResult AddEventKey(FormCollection fc) public IActionResult AddEventKey(IFormCollection fc)
{ {
TargetEvent entity = new TargetEvent(); TargetEvent entity = new TargetEvent();
entity.EventKey = fc["EventKey"]; entity.EventKey = fc["EventKey"];