Пример #1
0
        /// <summary>
        /// Adds an entity
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public async Task <T> AddAsync(T entity)
        {
            await Set.AddAsync(entity);

            await context.CommitAsync();

            return(entity);
        }