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)); }
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)); }
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)); }