コード例 #1
0
 public async Task <int> AddSubItem(SubItemBodyModel subItemBodyModel)
 {
     try
     {
         return(await _connection.GetConnection.ExecuteAsync(
                    sql : @"[Menu].[USP_InsertSubMenu]",
                    param : subItemBodyModel,
                    commandType : CommandType.StoredProcedure
                    ));
     }
     catch (Exception exception)
     {
         throw exception;
     }
     finally
     {
         _connection.Dispose();
     }
 }
コード例 #2
0
 public async Task <int> AddSubItem(SubItemBodyModel subItemBodyModel)
 {
     return(await _menuItemReporitory.AddSubItem(subItemBodyModel));
 }
コード例 #3
0
 public async Task <IHttpActionResult> AddSubItem([FromBody] SubItemBodyModel subItemBodyModel)
 {
     return(Ok(await _menuItemService.AddSubItem(subItemBodyModel)));
 }