public IActionResult AddUser(UserInfos m) { var code = _manager.AddUser(m); Log.Info($"{Request.Path} uid=[{m.Uid}] name=[{m.Name}] role=[{m.Role}] => code=[{code}]"); return(Ok(new { code })); }
public async Task <IActionResult> AddUser([FromBody] AdminUser adminUser) { var result = await _adminManager.AddUser(adminUser); return(Ok(result)); }