Beispiel #1
0
        public ActionResult GetGroupList()
        {
            List <Group>      getGroupList = new List <Group>();
            string            message      = null;
            ServerDataManager dataAccess   = new ServerDataManager(new ServerConnectVariable(), DBServerProvider.MS_SQL);

            dataAccess.GetGroupList(out getGroupList, out message);
            //create dummy data
            //message = Message.Message_OK;
            //getGroupList.Add(new Group
            //{
            //     Id=0,
            //     ServerConnectId=1,
            //     ConditionQuery="",
            //     Description="test",
            //     GroupName="test group",
            //     Size=10

            //});
            return(Json(new { data = getGroupList, message = message }, JsonRequestBehavior.AllowGet));
        }