Пример #1
0
 public async Task <User> Create([FromBody] CreateUserRequest request)
 {
     return(await _usersManager.Create(request));
 }
Пример #2
0
        public async Task <IActionResult> AddToCollection([FromBody] UserDto user)
        {
            var id = await _userManager.Create(_mapper.Map <User>(user));

            return(Ok(id));
        }