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(); } }
public async Task <int> AddSubItem(SubItemBodyModel subItemBodyModel) { return(await _menuItemReporitory.AddSubItem(subItemBodyModel)); }
public async Task <IHttpActionResult> AddSubItem([FromBody] SubItemBodyModel subItemBodyModel) { return(Ok(await _menuItemService.AddSubItem(subItemBodyModel))); }