方法参数FormCollection统一修改为IFormCollection
This commit is contained in:
@@ -63,7 +63,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
|
||||
[MyAuthorize( "add", "eventkey", "JSON")]
|
||||
[HttpPost]
|
||||
public IActionResult AddEventKey(FormCollection fc)
|
||||
public IActionResult AddEventKey(IFormCollection fc)
|
||||
{
|
||||
TargetEvent entity = new TargetEvent();
|
||||
entity.EventKey = fc["EventKey"];
|
||||
|
||||
Reference in New Issue
Block a user