public void Remove(Story story) { try { using (MySqlConnection connection = OpenNewConnection()) { MySqlCommand command = CreateDeleteCommand(_STORIES_TABLE_NAME, "Id", "=", story.Id); command.Connection = connection; command.ExecuteNonQuery(); StoryRemoved?.Invoke(this, story); } } catch { throw; } }
public void When(StoryRemoved storyRemoved) { Deleted = storyRemoved.Deleted; }