internal int SaveRatingSettings(PageRatingSetting objSetting, int userModuleID, int portalID, string userName)
        {
            List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >();

            param.Add(new KeyValuePair <string, object>("@RatingTitle", objSetting.RatingTitle));
            param.Add(new KeyValuePair <string, object>("@RatingPoint", objSetting.RatingPoint));
            param.Add(new KeyValuePair <string, object>("@IsRatingEditEnable", objSetting.IsRatingEditEnable));
            param.Add(new KeyValuePair <string, object>("@UserModuleID", userModuleID));
            param.Add(new KeyValuePair <string, object>("@PortalID", portalID));
            param.Add(new KeyValuePair <string, object>("@UserName", userName));

            SQLHandler sagesql = new SQLHandler();

            try
            {
                return(sagesql.ExecuteNonQuery("[dbo].[usp_Rating_SaveRatingSettings]", param, "@output"));
            }
            catch
            {
                throw;
            }
        }
예제 #2
0
        public int SaveRatingSettings(PageRatingSetting objSetting, int userModuleID, int portalID, string userName)
        {
            PageRatingProvider provider = new PageRatingProvider();

            return(provider.SaveRatingSettings(objSetting, userModuleID, portalID, userName));
        }