/// <summary> /// Handler, deletes a record. /// </summary> public IActionResult OnGetRemove(int id) { WorkflowStepsMaster WorkflowStepsMaster = WorkflowStepsMaster.SelectByPrimaryKey(id); WorkflowStepsMaster.Delete(id); return(new JsonResult(true)); }
/// <summary> /// Shows how to Delete an existing record by Primary Key /// </summary> private void Delete() { // delete a record by primary key WorkflowStepsMaster.Delete(12); }