예제 #1
0
        public async Task <BaseResult> CreateOrUpdate(SettingItem settingItem)
        {
            var setting = settingItem.ToSetting();
            var rs      = new BaseResult()
            {
                Result = Result.Success
            };

            return(setting.Id <= 0 ? await Create(setting) : await Update(setting));
        }