コード例 #1
0
        /// <summary>
        /// Handler, deletes a record.
        /// </summary>
        public IActionResult OnGetRemove(int id)
        {
            LoginTable LoginTable = LoginTable.SelectByPrimaryKey(id);

            LoginTable.Delete(id);
            return(new JsonResult(true));
        }
コード例 #2
0
 /// <summary>
 /// Shows how to Delete an existing record by Primary Key
 /// </summary>
 private void Delete()
 {
     // delete a record by primary key
     LoginTable.Delete(12);
 }