public async Task <ApiResult <string> > AddRole(SysAppSetting parm) { parm.Guid = Guid.NewGuid().ToString(); return(await _settingService.AddAsync(parm)); }
public async Task <IActionResult> AddRole([FromBody] SysAppSetting parm) { parm.Guid = Guid.NewGuid().ToString(); return(Ok(await _settingService.AddAsync(parm))); }