public static bool Insert(DTOTweet obj) { Cls.CreateNewSqlCommand(); Cls.AddParameter("AccountID", obj.AccountID); Cls.AddParameter("AccountID2", obj.AccountID2); Cls.AddParameter("Message", obj.Message); return(Cls.ExecuteNonQuery("sp_Tweet_Insert")); }
public static bool Delete(DTOTweet obj) { Cls.CreateNewSqlCommand(); Cls.AddParameter("TweetID", obj.TweetID); return(Cls.ExecuteNonQuery("sp_Tweet_Delete")); }