public async Task <IActionResult> BuySticker(string stickerId, TokHelper.ValueType type = TokHelper.ValueType.Coins) { return(Json(await _stickerService.PurchaseStickerAsync(stickerId))); }
public async Task <IActionResult> BuyAndSelectSticker(string stickerId, string tokId, TokHelper.ValueType type = TokHelper.ValueType.Coins) { var success = await _stickerService.PurchaseStickerAsync(stickerId); if (success) { return(Json(await _stickerService.AddStickerToTokAsync(tokId, stickerId))); } else { return(Json(false)); } }
public async Task <IActionResult> BuyAvatar(string avatarId, TokHelper.ValueType type = TokHelper.ValueType.Coins) { // Avatar Purchase Logic here... return(Json(null)); }