In WebAPI:
[HttpDelete]
[Route("AccountDel")]
public void DeleteAccount([FromBody]Account account)
{
...
So I can't call that from a (Or could a put a jquery ajax call in there):
destroy: {
type: "DELETE",
url: function (options) {
return '/api/FlossAccount/AccountDel';
},
dataType: "json",
data: function (options) {
return { '': options.models[0]};
},
cache: false
},
[HttpDelete]
[Route("AccountDel")]
public void DeleteAccount([FromBody]Account account)
{
...
So I can't call that from a (Or could a put a jquery ajax call in there):
destroy: {
type: "DELETE",
url: function (options) {
return '/api/FlossAccount/AccountDel';
},
dataType: "json",
data: function (options) {
return { '': options.models[0]};
},
cache: false
},