Interface ICreateService<TModel, TContext, TQuery>
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface ICreateService<in TModel, in TContext, in TQuery> : IReadService<TModel, TContext, TQuery> where TContext : IServiceContext where TQuery : Query
Type Parameters
| Name |
Description |
| TModel |
|
| TContext |
|
| TQuery |
|
Methods
CreateAsync<T>(TContext, T)
Declaration
Task<T> CreateAsync<T>(TContext context, T obj) where T : class, TModel
Parameters
| Type |
Name |
Description |
| TContext |
context |
|
| T |
obj |
|
Returns
Type Parameters
DeleteAsync(TContext, int)
Declaration
Task DeleteAsync(TContext context, int objectId)
Parameters
| Type |
Name |
Description |
| TContext |
context |
|
| int |
objectId |
|
Returns
Extension Methods