Beispiel #1
0
        public async Task <ActionResult <dynamic> > Register([FromBody] User user)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            var result = await idManager.AddUserAsync(user);

            return(Created("", result));
        }