Exemplo n.º 1
0
        public void getCollectionColorSizes(string productID, string phone, string clientID)
        {
            try
            {
                // 1 - color
                // 2 - size
                // 3 - tag
                // 4 - brand
                if (productID != "")
                {
                    MySQLBusinessLogic bl = new MySQLBusinessLogic();
                    List<string> lstColor = bl.GetProductrelatedSpecifications(Convert.ToInt32(productID), 1);
                    List<string> lstSize = bl.GetProductrelatedSpecifications(Convert.ToInt32(productID), 2);
                    List<string> lstTag = bl.GetProductrelatedSpecifications(Convert.ToInt32(productID), 3);
                    string colors = string.Join(",", lstColor);
                    string tags = string.Join(",", lstTag);
                    string sizes = string.Join(",", lstSize);
                    var jsonSerialiser = new JavaScriptSerializer();

                    //var jsonSerialiser = new JavaScriptSerializer();
                    //json2 = jsonSerialiser.Serialize(lstSelected);
                    Clients.Client(clientID).fillCollectionColorSizes("1", colors, tags, sizes);
                }
            }
            catch (Exception ex)
            {
            }
        }