示例#1
0
        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 }));
        }
示例#2
0
        public async Task <IActionResult> AddUser([FromBody] AdminUser adminUser)
        {
            var result = await _adminManager.AddUser(adminUser);

            return(Ok(result));
        }