public async Task <ActionResult> TwoFactor() { var item = await PaytopiaReader.GetItem(PaytopiaItemType.TwoFactor); var balance = await UserBalanceReader.GetBalance(User.Identity.GetUserId(), item.CurrencyId); return(View("TwoFactorModal", new TwoFactorModel { Balance = balance?.Available ?? 0, Currency = item.Symbol, Price = item.Price, Name = item.Name, Description = item.Description })); }
public async Task <ActionResult> FeaturedCurrencySlot() { var item = await PaytopiaReader.GetItem(PaytopiaItemType.FeaturedCurrency); var items = await PaytopiaReader.GetFeaturedCurrencySlotItems(); var balance = await UserBalanceReader.GetBalance(User.Identity.GetUserId(), item.CurrencyId); return(View("FeaturedCurrencySlotModal", new FeaturedSlotModel { Items = items, Balance = balance?.Available ?? 0, Currency = item.Symbol, Price = item.Price, Name = item.Name, Description = item.Description })); }
public async Task <ActionResult> PoolListing() { var item = await PaytopiaReader.GetItem(PaytopiaItemType.PoolListing); var items = await PaytopiaReader.GetPoolListingItems(); var balance = await UserBalanceReader.GetBalance(User.Identity.GetUserId(), item.CurrencyId); return(View("PoolListingModal", new PoolListingModel { Balance = balance?.Available ?? 0, Currency = item.Symbol, Price = item.Price, Name = item.Name, Items = items, Description = item.Description })); }