コード例 #1
0
        public void Delete(string value)
        {
            var dataDelete = new LockdownPoolsDataModel();

            dataDelete.LockdownPoolsId = int.Parse(value);
            LockdownPoolsDataManager.Delete(dataDelete, SessionVariables.RequestProfile);
        }
コード例 #2
0
        public void Update([FromBody] dynamic data)
        {
            var jsonString = JsonConvert.SerializeObject(data);
            var dataUpdate = JsonConvert.DeserializeObject <LockdownPoolsDataModel>(jsonString);

            LockdownPoolsDataManager.Update(dataUpdate, SessionVariables.RequestProfile);
        }
コード例 #3
0
        public LockdownPoolsDataModel GetById(string value)
        {
            var dataQuery = new LockdownPoolsDataModel();

            dataQuery.LockdownPoolsId = int.Parse(value);

            var result = LockdownPoolsDataManager.GetEntityDetails(dataQuery, SessionVariables.RequestProfile, 1);

            return(result[0]);
        }
コード例 #4
0
        // GET api/summary/GetList
        public IEnumerable <LockdownPoolsDataModel> GetList(string value, string value1)
        {
            var settingCategory = value1;
            var searchString    = value;

            var dictionaryObject = JsonConvert.DeserializeObject <Dictionary <string, string> >(searchString);

            // save search filter parameters in user preference
            if (dictionaryObject != null)
            {
                foreach (var searchFilterColumnName in dictionaryObject.Keys)
                {
                    var searchFilterValue = dictionaryObject[searchFilterColumnName];
                    PerferenceUtility.UpdateUserPreference(settingCategory, searchFilterColumnName, dictionaryObject[searchFilterColumnName]);
                }
            }

            var dataQuery = JsonConvert.DeserializeObject <LockdownPoolsDataModel>(searchString);

            return(LockdownPoolsDataManager.GetEntityDetails(dataQuery, SessionVariables.RequestProfile));
        }