/// <summary> /// Insert new record asychrony /// </summary> /// <param name="entity">The entity</param> /// <returns>The inserted record</returns> public async Task <TEntity> AddAsync(TEntity entity) { var newItem = await Entity.AddAsync(entity); await _dbContext.SaveChangesAsync(); return(newItem.Entity); }
public async Task <ItemCatalogo> AdicionarAsync(ItemCatalogo item) { var result = await Entity.AddAsync(item); return(result.Entity); }
public async Task AddAsync(T entity) { await Entity.AddAsync(entity); }
public async Task <Objeto> AdicionarAsync(Objeto item) { var result = await Entity.AddAsync(item); return(result.Entity); }
public async Task <PactoTrabalho> AdicionarAsync(PactoTrabalho item) { var result = await Entity.AddAsync(item); return(result.Entity); }