/// <summary> /// Deletes the entity /// </summary> /// <returns>True if the entity is updated</returns> public async Task <Boolean> DeleteAsync() { return(await _connection.DeleteAsync(_keyName, _identifier)); }
public async Task <IActionResult> DeleteConfirmed(int id) { await _api.DeleteAsync(id); return(RedirectToAction(nameof(Index))); }