public static List <AttributeSetGroupAliasInfo> RenameAttributeSetGroupAlias(AttributeSetGroupAliasInfo attributeSetInfoToUpdate)
 {
     try
     {
         List <AttributeSetGroupAliasInfo> ml;
         ml = AspxItemAttrMgntProvider.RenameAttributeSetGroupAlias(attributeSetInfoToUpdate);
         return(ml);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #2
0
 public List <AttributeSetGroupAliasInfo> RenameAttributeSetGroupAlias(AttributeSetGroupAliasInfo attributeSetInfoToUpdate)
 {
     try
     {
         List <AttributeSetGroupAliasInfo>     ml;
         List <KeyValuePair <string, object> > parameterCollection = new List <KeyValuePair <string, object> >();
         parameterCollection.Add(new KeyValuePair <string, object>("@GroupID", attributeSetInfoToUpdate.GroupID));
         parameterCollection.Add(new KeyValuePair <string, object>("@CultureName", attributeSetInfoToUpdate.CultureName));
         parameterCollection.Add(new KeyValuePair <string, object>("@AliasName", attributeSetInfoToUpdate.AliasName));
         parameterCollection.Add(new KeyValuePair <string, object>("@AttributeSetID", attributeSetInfoToUpdate.AttributeSetID));
         parameterCollection.Add(new KeyValuePair <string, object>("@StoreID", attributeSetInfoToUpdate.StoreID));
         parameterCollection.Add(new KeyValuePair <string, object>("@PortalID", attributeSetInfoToUpdate.PortalID));
         parameterCollection.Add(new KeyValuePair <string, object>("@IsActive", attributeSetInfoToUpdate.IsActive));
         parameterCollection.Add(new KeyValuePair <string, object>("@IsModified", attributeSetInfoToUpdate.IsModified));
         parameterCollection.Add(new KeyValuePair <string, object>("@UserName", attributeSetInfoToUpdate.UpdatedBy));
         SQLHandler sqlH = new SQLHandler();
         ml = sqlH.ExecuteAsList <AttributeSetGroupAliasInfo>("dbo.usp_Aspx_AttributeGroupAliasRename", parameterCollection);
         return(ml);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public List<AttributeSetGroupAliasInfo> RenameAttributeSetGroupAliasByGroupID(int groupId, string cultureName, string aliasName, int attributeSetId, int storeId, int portalId, bool isActive, bool isModified, string userName)
 {
     try
     {
         AttributeSetGroupAliasInfo attributeSetInfoToUpdate = new AttributeSetGroupAliasInfo
                                                                   {
                                                                       GroupID = groupId,
                                                                       CultureName = cultureName,
                                                                       AliasName = aliasName,
                                                                       AttributeSetID = attributeSetId,
                                                                       StoreID = storeId,
                                                                       PortalID = portalId,
                                                                       IsActive = isActive,
                                                                       IsModified = isModified,
                                                                       UpdatedBy = userName
                                                                   };
         ItemAttributesManagementSqlProvider obj = new ItemAttributesManagementSqlProvider();
         return obj.RenameAttributeSetGroupAlias(attributeSetInfoToUpdate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List<AttributeSetGroupAliasInfo> RenameAttributeSetGroupAlias(AttributeSetGroupAliasInfo attributeSetInfoToUpdate)
 {
     try
     {
         List<AttributeSetGroupAliasInfo> ml;
         List<KeyValuePair<string, object>> parameterCollection = new List<KeyValuePair<string, object>>();
         parameterCollection.Add(new KeyValuePair<string, object>("@GroupID", attributeSetInfoToUpdate.GroupID));
         parameterCollection.Add(new KeyValuePair<string, object>("@CultureName", attributeSetInfoToUpdate.CultureName));
         parameterCollection.Add(new KeyValuePair<string, object>("@AliasName", attributeSetInfoToUpdate.AliasName));
         parameterCollection.Add(new KeyValuePair<string, object>("@AttributeSetID", attributeSetInfoToUpdate.AttributeSetID));
         parameterCollection.Add(new KeyValuePair<string, object>("@StoreID", attributeSetInfoToUpdate.StoreID));
         parameterCollection.Add(new KeyValuePair<string, object>("@PortalID", attributeSetInfoToUpdate.PortalID));
         parameterCollection.Add(new KeyValuePair<string, object>("@IsActive", attributeSetInfoToUpdate.IsActive));
         parameterCollection.Add(new KeyValuePair<string, object>("@IsModified", attributeSetInfoToUpdate.IsModified));
         parameterCollection.Add(new KeyValuePair<string, object>("@UserName", attributeSetInfoToUpdate.UpdatedBy));
         SQLHandler sqlH = new SQLHandler();
         ml = sqlH.ExecuteAsList<AttributeSetGroupAliasInfo>("dbo.usp_Aspx_AttributeGroupAliasRename", parameterCollection);
         return ml;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public List<AttributeSetGroupAliasInfo> RenameAttributeSetGroupAliasByGroupID(AttributeSetGroupAliasInfo attributeSetInfoToUpdate)
 {
     try
     {
         List<AttributeSetGroupAliasInfo> lstAttrSetGroup = AspxItemAttrMgntController.RenameAttributeSetGroupAlias(attributeSetInfoToUpdate);
         return lstAttrSetGroup;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static List<AttributeSetGroupAliasInfo> RenameAttributeSetGroupAlias(AttributeSetGroupAliasInfo attributeSetInfoToUpdate)
 {
     try
     {
         List<AttributeSetGroupAliasInfo> ml;
         ml = AspxItemAttrMgntProvider.RenameAttributeSetGroupAlias(attributeSetInfoToUpdate);
         return ml;
     }
     catch (Exception e)
     {
         throw e;
     }
 }