public async Task <FriendVm> AddFriendAsync(FriendVm friend) { var result = await _friendService.AddFriendAsync(friend).ConfigureAwait(false); _cache.Remove(nameof(GetAllFriendsAsync)); return(result); }
public Task <FriendVm> AddFriend([FromBody] FriendVm friend) => _friendService.AddFriendAsync(friend);
public Task <LanguageKey> AddFriendAsync([FromBody] FriendShipRequest friendPacket) => _friendService.AddFriendAsync(friendPacket.CharacterId, friendPacket.FinsPacket !.CharacterId, friendPacket.FinsPacket.Type);
public async Task <IActionResult> AddFriend([FromBody] AddFriend command) => Json(await _friendService.AddFriendAsync(UserId, command.friendID));