Beispiel #1
0
        public async Task <IActionResult> Post(UserToCreateDto user)
        {
            UserDto createdUser = await _service.CreateUser(user);

            if (createdUser == null)
            {
                return(StatusCode(400));
            }
            return(StatusCode(200, createdUser));
        }