Beispiel #1
0
        public async ValueTask <User> InsertUserAsync(User user, string password)
        {
            var broker = new UserManagementBroker(this.userManagement);
            await broker.userManagement.CreateAsync(user, password);

            return(user);
        }
Beispiel #2
0
        public async ValueTask <User> DeleteUserAsync(User user)
        {
            var broker = new UserManagementBroker(this.userManagement);
            await broker.userManagement.DeleteAsync(user);

            return(user);
        }
Beispiel #3
0
        public async ValueTask <User> SelectUserByIdAsync(Guid userId)
        {
            var broker = new UserManagementBroker(this.userManagement);

            return(await broker.userManagement.FindByIdAsync(userId.ToString()));
        }