public object GetById(Guid global_setting_id)
        {
            return(base.ExecuteFunction <object>("GetById", delegate()
            {
                dm.GlobalSetting result = this.API.Direct.GlobalSettings.GetById(global_setting_id);
                if (result == null)
                {
                    return Http404("GlobalSetting");
                }



                return base.Http200(new ItemResult <sdk.GlobalSetting>()
                {
                    success = true,
                    item = result.ToSDKModel()
                });
            }));
        }
        public object Create(sdk.GlobalSetting globalsetting)
        {
            return(base.ExecuteFunction <object>("Create", delegate()
            {
                this.ValidateNotNull(globalsetting, "GlobalSetting");

                dm.GlobalSetting insert = globalsetting.ToDomainModel();


                insert = this.API.Direct.GlobalSettings.Insert(insert);



                sdk.GlobalSetting result = insert.ToSDKModel();

                return base.Http201(new ItemResult <sdk.GlobalSetting>()
                {
                    success = true,
                    item = result
                }
                                    , string.Format("api/globalsetting/{0}", globalsetting.global_setting_id));
            }));
        }