public async Task <IActionResult> Index()
        {
            var response = await _blockchainService.GetCampaigns();

            if (response.Succeeded)
            {
                return(View(response.Value));
            }
            return(BadRequest());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Donation()
        {
            var campaigns = await _blockchainService.GetCampaigns();

            if (campaigns.Succeeded)
            {
                return(View(campaigns.Value));
            }
            return(BadRequest());
        }
        public async Task <IActionResult> Index()
        {
            var campaings = await _blockchainService.GetCampaigns();

            var model = new DonateViewModel
            {
                Campaigns = campaings.Value
            };

            return(View(model));
        }