0
Я хочу передать идентификатор моего методу ActionResult Удалитькак вызвать ActionResult метод в моем контроллере от кендо сетки в mvc4
public ActionResult Delete(Guid AssetTypeId)
{
// _repo.DeleteAssetType(AssetTypeId);
if (_repo.DeleteAssetType(AssetTypeId) == 1)
{
return Index();
}
else
{
TempData["AlertMessage"] = "The DELETE statement conflicted with the REFERENCE constraint ";
return Index();
}
из кендо сетки
.Action("Delete", "AssetType",new { AssetTypeId = "#=AssetTypeId#" }))
использовать вызов ajax, см. Мой ответ здесь для примера о том, как это сделать. http://stackoverflow.com/questions/19643864/how-do-i-render-a-partial-form-element-using-ajax/19643974#19643974 –