public static void NotificationSaveUpdateSettings(NotificationSettingsInfo saveUpdateInfo, AspxCommonInfo aspxCommonObj)
        {
            try
            {
                List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
                parameterCollection.Add(new KeyValuePair<string, object>("@AllActive", saveUpdateInfo.AllActive));
                parameterCollection.Add(new KeyValuePair<string, object>("@UserNotificationActive", saveUpdateInfo.UserNotificationActive));
                parameterCollection.Add(new KeyValuePair<string, object>("@UserNotificationCount", saveUpdateInfo.UserNotificationCount));
                parameterCollection.Add(new KeyValuePair<string, object>("@SubscriptionNotificationActive ", saveUpdateInfo.SubscriptionNotificationActive));
                parameterCollection.Add(new KeyValuePair<string, object>("@SubscriptionNotificationCount", saveUpdateInfo.SubscriptionNotificationCount));
                parameterCollection.Add(new KeyValuePair<string, object>("@OutofStockNotificationActive", saveUpdateInfo.OutofStockNotificationActive));
                parameterCollection.Add(new KeyValuePair<string, object>("@OutofStockNotificationCount", saveUpdateInfo.OutofStockNotificationCount));
                parameterCollection.Add(new KeyValuePair<string, object>("@ItemsLowStockNotificationActive", saveUpdateInfo.ItemsLowStockNotificationActive));
                parameterCollection.Add(new KeyValuePair<string, object>("@ItemsLowStockCount", saveUpdateInfo.ItemsLowStockCount));
                parameterCollection.Add(new KeyValuePair<string, object>("@OrdersNotificationAtive", saveUpdateInfo.OrdersNotificationAtive));
                parameterCollection.Add(new KeyValuePair<string, object>("@OrdersNotificationCount", saveUpdateInfo.OrdersNotificationCount));
                SQLHandler sqlH = new SQLHandler();
                sqlH.ExecuteNonQuery("[dbo].[usp_Aspx_NotificationSaveUpdateSettings]", parameterCollection);

            }
            catch (Exception e)
            {
                throw e;
            }
        }
 public void NotificationSaveUpdateSettings(NotificationSettingsInfo saveUpdateInfo, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AdminNotificationController.NotificationSaveUpdateSettings(saveUpdateInfo, aspxCommonObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Beispiel #3
0
 public static void NotificationSaveUpdateSettings(NotificationSettingsInfo saveUpdateInfo, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AdminNotificationProvider.NotificationSaveUpdateSettings(saveUpdateInfo, aspxCommonObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Beispiel #4
0
 public static NotificationSettingsInfo NotificationSettingsGetAll(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         NotificationSettingsInfo listInfo = AdminNotificationProvider.NotificationSettingsGetAll(aspxCommonObj);
         return(listInfo);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Beispiel #5
0
 public static NotificationSettingsInfo NotificationSettingsGetAll(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameterCollection = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         SQLHandler sqlH = new SQLHandler();
         NotificationSettingsInfo listInfo = sqlH.ExecuteAsObject <NotificationSettingsInfo>("[dbo].[usp_Aspx_NotificationSettingsGetAll]", parameterCollection);
         return(listInfo);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Beispiel #6
0
 public static void NotificationSaveUpdateSettings(NotificationSettingsInfo saveUpdateInfo, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameterCollection = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
         parameterCollection.Add(new KeyValuePair <string, object>("@AllActive", saveUpdateInfo.AllActive));
         parameterCollection.Add(new KeyValuePair <string, object>("@UserNotificationActive", saveUpdateInfo.UserNotificationActive));
         parameterCollection.Add(new KeyValuePair <string, object>("@UserNotificationCount", saveUpdateInfo.UserNotificationCount));
         parameterCollection.Add(new KeyValuePair <string, object>("@SubscriptionNotificationActive ", saveUpdateInfo.SubscriptionNotificationActive));
         parameterCollection.Add(new KeyValuePair <string, object>("@SubscriptionNotificationCount", saveUpdateInfo.SubscriptionNotificationCount));
         parameterCollection.Add(new KeyValuePair <string, object>("@OutofStockNotificationActive", saveUpdateInfo.OutofStockNotificationActive));
         parameterCollection.Add(new KeyValuePair <string, object>("@OutofStockNotificationCount", saveUpdateInfo.OutofStockNotificationCount));
         parameterCollection.Add(new KeyValuePair <string, object>("@ItemsLowStockNotificationActive", saveUpdateInfo.ItemsLowStockNotificationActive));
         parameterCollection.Add(new KeyValuePair <string, object>("@ItemsLowStockCount", saveUpdateInfo.ItemsLowStockCount));
         parameterCollection.Add(new KeyValuePair <string, object>("@OrdersNotificationAtive", saveUpdateInfo.OrdersNotificationAtive));
         parameterCollection.Add(new KeyValuePair <string, object>("@OrdersNotificationCount", saveUpdateInfo.OrdersNotificationCount));
         SQLHandler sqlH = new SQLHandler();
         sqlH.ExecuteNonQuery("[dbo].[usp_Aspx_NotificationSaveUpdateSettings]", parameterCollection);
     }
     catch (Exception e)
     {
         throw e;
     }
 }