コード例 #1
0
        public async Task <IActionResult> CreateCurrency(Currency currency)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            else
            {
                await _currencyRepository.CreateCurrencyAsync(currency);

                return(RedirectToAction("CurrencyList"));
            }
        }