private JsonResult TopTime(string where)
        {
            ArrayList obj  = new ArrayList();
            ArrayList arry = new ArrayList();
            IList <EbayMessageReType> list = NSession.CreateQuery("from EbayMessageReType where " + where).List <EbayMessageReType>();

            foreach (var item in list)
            {
                int c = 0;
                if (arry.Count != 0)
                {
                    foreach (var name in arry)
                    {
                        if (item.ReplayBy == Convert.ToString(name))
                        {
                            c = 1;
                        }
                    }
                }
                if (c == 0)
                {
                    arry.Add(item.ReplayBy);
                }
            }
            myCompare compare = new myCompare();

            if (arry.Count != 0)
            {
                foreach (var name in arry)
                {
                    object count = NSession.CreateQuery("select count(Id) from EbayMessageReType where ReplayBy='" + name + "' and " + where).UniqueResult();
                    obj.Add(new eployee {
                        Count = Convert.ToInt32(count), Name = Convert.ToString(name)
                    });
                }
            }
            if (obj.Count != 0)
            {
                obj.Sort(compare);
            }
            return(Json(obj));
        }
        private JsonResult TopTime(string where)
        {

            ArrayList obj = new ArrayList();
            ArrayList arry = new ArrayList();
            IList<EbayMessageReType> list = NSession.CreateQuery("from EbayMessageReType where " + where).List<EbayMessageReType>();
            foreach (var item in list)
            {
                int c = 0;
                if (arry.Count != 0)
                {
                    foreach (var name in arry)
                    {
                        if (item.ReplayBy == Convert.ToString(name))
                        {
                            c = 1;
                        }
                    }
                }
                if (c == 0)
                {
                    arry.Add(item.ReplayBy);
                }
            }
            myCompare compare = new myCompare();
            if (arry.Count != 0)
            {
                foreach (var name in arry)
                {
                    object count = NSession.CreateQuery("select count(Id) from EbayMessageReType where ReplayBy='" + name + "' and " + where).UniqueResult();
                    obj.Add(new eployee { Count = Convert.ToInt32(count), Name = Convert.ToString(name) });
                }
            }
            if (obj.Count != 0)
            {
                obj.Sort(compare);
            }
            return Json(obj);
        }