public IActionResult Claimaddress(string address, string message, string signature, string ownername) { var coins = mainCoins.GetCoin(); if (string.IsNullOrEmpty(address) || string.IsNullOrEmpty(signature) || string.IsNullOrEmpty(ownername)) { return(RedirectToAction("Index", "Claim", new { error = "true", address = address.ToString() })); } bool result = false; try { result = mainCoins.AddAddress(address, message?.ToString() ?? "", signature, ownername, coins.CoinID); } catch { result = false; } if (result) { return(RedirectToAction("Index", "Claim", new { success = "true" })); } else { return(RedirectToAction("Index", "Claim", new { error = "true", address = address.ToString() })); } }