Esempio n. 1
0
        private async Task Add(Media mediaInfo)
        {
            mediaInfo.ID = Guid.NewGuid();
            await _db.AddAsync(mediaInfo);

            await _db.SaveChangesAsync();
        }
        private async Task Add(Event eventInfo)
        {
            eventInfo.ID = Guid.NewGuid();
            await _db.AddAsync(eventInfo);

            await _db.SaveChangesAsync();
        }
Esempio n. 3
0
        private async Task Add(Section section)
        {
            section.ID = Guid.NewGuid();
            await _db.AddAsync(section);

            await _db.SaveChangesAsync();
        }