Exemple #1
0
        internal int SaveUserChoice(UserChoiceInfo userChoiceInfo)
        {
            List <KeyValuePair <string, object> > Param = new List <KeyValuePair <string, object> >();

            Param.Add(new KeyValuePair <string, object>("@ResultID", userChoiceInfo.ResultID));
            Param.Add(new KeyValuePair <string, object>("@MessageID", userChoiceInfo.MessageID));
            Param.Add(new KeyValuePair <string, object>("@Title", userChoiceInfo.Title));
            Param.Add(new KeyValuePair <string, object>("@Message", userChoiceInfo.Message));
            Param.Add(new KeyValuePair <string, object>("@Destination", userChoiceInfo.Destination));
            Param.Add(new KeyValuePair <string, object>("@TrackingID", userChoiceInfo.TrackingID));

            try
            {
                SQLHandler objHandler = new SQLHandler();
                int        value      = objHandler.ExecuteNonQuery("[dbo].[usp_SocialMedia_AddNewUsersChoice]", Param, "@ReturnCode");
                return(value);
            }
            catch { return(-1); }
        }
Exemple #2
0
 public int SaveUserChoice(UserChoiceInfo userChoiceInfo)
 {
     SocialFeedProvider objProvider = new SocialFeedProvider();
     return objProvider.SaveUserChoice(userChoiceInfo);
 }