Ejemplo n.º 1
0
        public virtual async Task <TEntity> CreateAsync(TEntity entity, CancellationToken cancellationToken)
        {
            entity = await Store.CreateAsync(entity, cancellationToken);

            return(entity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Insere registros da tabela por entity
 /// </summary>
 public async Task <IEnumerable <TModel> > CreateAsync(params TModel[] entity)
 {
     return(await _store.CreateAsync(CancellationToken, entity));
 }