Ejemplo n.º 1
0
 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 = new List<AttributeSetGroupAliasInfo>();
         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 Sq = new SQLHandler();
         ml = Sq.ExecuteAsList<AttributeSetGroupAliasInfo>("dbo.usp_ASPX_AttributeGroupAliasRename", ParaMeterCollection);
         return ml;
     }
     catch (Exception e)
     {
         throw e;
     }
 }