Skip to content

Commit

Permalink
⛏ Add endpoints for IHookContext
Browse files Browse the repository at this point in the history
- Add Update entity endpoint
- Add Delete entity endpoint
  • Loading branch information
furkandeveloper committed Aug 3, 2021
1 parent 875b451 commit f3b2cb7
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion src/IronHook.Core/Abstractions/IIronHookContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using IronHook.Core.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -35,5 +36,33 @@ public interface IIronHookContext
/// Task
/// </returns>
Task InsertAsync<T>(T entity) where T : class;

/// <summary>
/// Update Entity
/// </summary>
/// <typeparam name="T">
/// Type of Entity
/// </typeparam>
/// <param name="entity">
/// Entity
/// </param>
/// <returns>
/// Task
/// </returns>
Task UpdateAsync<T>(T entity) where T : class;

/// <summary>
/// Delete
/// </summary>
/// <typeparam name="T">
/// Type of Entity
/// </typeparam>
/// <param name="entity">
/// Entity
/// </param>
/// <returns>
/// Task
/// </returns>
Task DeleteAsync<T>(T entity) where T : class;
}
}

0 comments on commit f3b2cb7

Please sign in to comment.