コード例 #1
0
 /// <summary>
 ///    <see
 ///       cref="Microsoft.Samples.NLayerApp.Application.MainBoundedContext.BankingModule.Services.IMainBoundedContextService" />
 /// </summary>
 /// <param name="newBankAccount">
 ///    <see
 ///       cref="Microsoft.Samples.NLayerApp.Application.MainBoundedContext.BankingModule.Services.IMainBoundedContextService" />
 /// </param>
 /// <returns>
 ///    <see
 ///       cref="Microsoft.Samples.NLayerApp.Application.MainBoundedContext.BankingModule.Services.IMainBoundedContextService" />
 /// </returns>
 public BankAccountDto AddNewBankAccount(BankAccountDto newBankAccount)
 {
     return(_bankAppService.AddBankAccount(newBankAccount));
 }
コード例 #2
0
 public BankAccountDTO Post([FromBody] BankAccountDTO newBankAccount)
 {
     return(_bankAppService.AddBankAccount(newBankAccount));
 }