function onDeleteClient() { var url = '/Clients/Delete/'; var clientId = jQuery('#client_grid').jqGrid('getGridParam', 'selrow'); window.location.href = url + parseInt(clientId); $('#client_grid').trigger("reloadGrid", [{ page: 1}]); };
public ActionResult Delete(int id) { var model = new ClientsModel(); model.Delete(id); return RedirectToAction("Index"); }
RedirectToAction("Index");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)