/// <summary> /// Handler, deletes a record. /// </summary> public IActionResult OnGetRemove(int id) { LoginTable LoginTable = LoginTable.SelectByPrimaryKey(id); LoginTable.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 LoginTable.Delete(12); }