Ejemplo n.º 1
0
        public async static Task AddAndSaveAsync <T>(this IPersistence persistence, params T[] entity) where T : class, IEntity, new()
        {
            await persistence.AddAsync(entity);

            await persistence.SaveChangesAsync();
        }