
[HttpPut]
public JsonResult Update(Student student)
{
if (student == null)
return Json("參數為空");
return Json(bLL.Update(student));
}
[HttpDelete]
public JsonResult Delete(dynamic[] ids)
{
if (ids.Length == 0)
return Json("參數為空");
return Json(bLL.Delete(ids));
}
“[HttpPut]”,“[HttpDelete]” 特性未添加 或者添加錯誤 導致。
具體的特性差異可參考:https://blog.csdn.net/xiaolinlife/article/details/72854741
