Пример #1
0
        public async Task <FriendVm> AddFriendAsync(FriendVm friend)
        {
            var result = await _friendService.AddFriendAsync(friend).ConfigureAwait(false);

            _cache.Remove(nameof(GetAllFriendsAsync));

            return(result);
        }
Пример #2
0
 public Task <FriendVm> AddFriend([FromBody] FriendVm friend)
 => _friendService.AddFriendAsync(friend);
Пример #3
0
 public Task <LanguageKey> AddFriendAsync([FromBody] FriendShipRequest friendPacket) => _friendService.AddFriendAsync(friendPacket.CharacterId, friendPacket.FinsPacket !.CharacterId, friendPacket.FinsPacket.Type);
Пример #4
0
 public async Task <IActionResult> AddFriend([FromBody] AddFriend command)
 => Json(await _friendService.AddFriendAsync(UserId, command.friendID));