public async Task <IActionResult> Create([Bind("Id,Name,Description,BenefitsDescription," + "AnnualRate,BonusRate,MinimumDepositAmount,MinimumReplenishmentAmount," + "MaximumDepositAmount,InterestPaymentId,CurrencyId,DepositTermId")] DepositType depositType) { if (ModelState.IsValid) { await _depoService.CreateDepositType(depositType); return(RedirectToAction(nameof(Index))); } ViewData["InterestPaymentId"] = new SelectList(await _interestPaymentService.GetAll(), "Id", "Name"); ViewData["CurrencyId"] = new SelectList(await _currencyService.GetAll(), "Id", "Name"); ViewData["DepositTermId"] = new SelectList(await _depositTerm.GetAllWithTerm(), "Id", "Name"); return(View(depositType)); }