Пример #1
0
        /// <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);
        }
Пример #3
0
 public async Task AddAsync(T entity)
 {
     await Entity.AddAsync(entity);
 }
Пример #4
0
        public async Task <Objeto> AdicionarAsync(Objeto item)
        {
            var result = await Entity.AddAsync(item);

            return(result.Entity);
        }
Пример #5
0
        public async Task <PactoTrabalho> AdicionarAsync(PactoTrabalho item)
        {
            var result = await Entity.AddAsync(item);

            return(result.Entity);
        }