public async Task Edit(int id, EditSettingInput input) { var setting = await Get(id); setting.Name = input.Name; setting.SettingValue = input.SettingValue; }
public async Task <IActionResult> Edit(int id, [FromBody] EditSettingInput input) { await _settingService.Edit(id, input); await _dbContext.SaveChangesAsync(); return(Ok()); }