public async Task <User> Create([FromBody] CreateUserRequest request) { return(await _usersManager.Create(request)); }
public async Task <IActionResult> AddToCollection([FromBody] UserDto user) { var id = await _userManager.Create(_mapper.Map <User>(user)); return(Ok(id)); }