public void DeleteTweets(List<Tweet> Tweets) { try { DBWrapper.DB _DB = new DBWrapper.DB(System.Configuration.ConfigurationManager.AppSettings.Get("DBServerName")); _DB.DeleteTweets(Tweets); } catch { //Error can be handled here using Log4Net, Email notifications, returning error to user as a friendly string... etc. } }
public List<Tweet> GetAllTweets() { try { DBWrapper.DB _DB = new DBWrapper.DB(System.Configuration.ConfigurationManager.AppSettings.Get("DBServerName")); return _DB.GetAllTweets(); } catch { //Error can be handled here using Log4Net, Email notifications, returning error to user as a friendly string... etc. return null; } }