コード例 #1
0
        public IHttpActionResult GetAllGridColumnPaging(dynamic Json)
        {
            string  Input        = JsonConvert.SerializeObject(Json);
            string  output       = GridConfigurationDataAccessManager.GetAllGridColumnPaging(Input);
            JObject returnObject = new JObject();

            if (output != null)
            {
                returnObject = (JObject)JsonConvert.DeserializeObject(output);
            }
            return(Ok(returnObject));
        }
コード例 #2
0
        public IHttpActionResult DeleteUserDimensionById(dynamic Json)
        {
            string  Input        = JsonConvert.SerializeObject(Json);
            string  output       = GridConfigurationDataAccessManager.DeleteUserDimensionById(Input);
            JObject returnObject = new JObject();

            if (output != null)
            {
                returnObject = (JObject)JsonConvert.DeserializeObject(output);
            }
            return(Ok(returnObject));
        }
コード例 #3
0
        public IHttpActionResult SaveGridColumn(dynamic Json)
        {
            string  Input        = JsonConvert.SerializeObject(Json);
            JObject obj          = (JObject)JsonConvert.DeserializeObject(Input);
            var     gridColumnId = obj["Json"]["GridColumnList"][0]["GridColumnId"].ToString();

            if (gridColumnId == "0")
            {
                string output = GridConfigurationDataAccessManager.InsertGridColumn(Input);
            }
            else
            {
                string output = GridConfigurationDataAccessManager.UpdateGridColumn(Input);
            }
            JObject returnObject = new JObject();

            if (Input != null)
            {
                returnObject = (JObject)JsonConvert.DeserializeObject(Input);
            }
            return(Ok(returnObject));
        }