/// <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));
 }
Ejemplo n.º 2
0
 public BankAccountDTO Post([FromBody] BankAccountDTO newBankAccount)
 {
     return(_bankAppService.AddBankAccount(newBankAccount));
 }