public async Task <JsonResult> PostRegisterInvestmentProduct([FromBody] RegisterInvestmentProductRequestDto dto) { await this._financial.RegisterInvestmentProduct(dto); return(new JsonResult(new { Result = true })); }
/// <summary> /// 投資商品情報登録 /// </summary> /// <param name="dto">DTO</param> public async Task RegisterInvestmentProduct(RegisterInvestmentProductRequestDto dto) { await this._db.InvestmentProducts.AddAsync(new InvestmentProduct { Name = dto.Name, Key = dto.Key, Type = dto.Type, Category = dto.Category, InvestmentCurrencyUnitId = dto.CurrencyUnitId, Enable = true }); await this._db.SaveChangesAsync(); }