Пример #1
0
        public void getAllCategories(string clientID,string storetype)
        {
            try
            {
                string json1 = "";//list of all categories

                DataTable dtAllCategories = new DataTable();
                MySQLBusinessLogic bl = new MySQLBusinessLogic();
                dtAllCategories = bl.GetOtherCategorieswithCount(storetype);
                if (dtAllCategories.Rows.Count > 0)
                    json1 = ConvertDataTabletoString(dtAllCategories);

                Clients.Client(clientID).gotAllCategories(json1);
            }
            catch (Exception ex)
            {
            }
        }