コード例 #1
0
        public void BlockUser(string userId)
        {
            var currentUserId = _userManager.GetUserAsync(User).Result.Id;

            _appUserService.BlockUser(new BlockedUserViewModel {
                AppUserId = currentUserId, BlockedAppUserId = userId
            });
        }