Beispiel #1
0
        public bool Create(UserCreationRequest userDto)
        {
            if (_db.Get(userDto.UserName, userDto.Password) != null)
            {
                return(false);
            }

            ApplicationUser user = new(userDto.UserName, userDto.Password);

            _db.Create(user);

            return(true);
        }