public BaseOutput SetAppInfo([FromBody] SetAppInfoInput input) { var model = _mapper.Map <SetAppInfoInput, AppModel>(input); if (model.Id > 0) { // 基础字段不容许更新 _adminDbContext.Updateable(model).ExecuteCommand(); } else { _adminDbContext.Insertable(model).ExecuteCommand(); } return(new BaseOutput { }); }
public async Task <SetAppInfoOutput> SetAppInfo(SetAppInfoInput input) { var model = _mapper.Map <SetAppInfoInput, AppInfo>(input); if (model.Id > 0) { // 基础字段不容许更新 await _dbContext.Updateable(model) .ExecuteCommandAsync(); } else { await _dbContext.Insertable(model) .ExecuteCommandAsync(); } return(new SetAppInfoOutput { }); }
public async Task <SetAppInfoOutput> SetAppInfo([FromBody] SetAppInfoInput input) { return(await _configBusniess.SetAppInfo(input)); }