Exemplo n.º 1
0
        /// <summary>
        /// Create - saves a sermon data by saving a Sermon object into the connected database
        /// </summary>
        /// <param name="sermon">Sermon object containing new sermon data</param>
        /// <returns></returns>
        public async Task CreateSermonAsync(Sermon sermon)
        {
            await _context.Sermon.AddAsync(sermon);

            await _context.SaveChangesAsync();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create - saves an album data by saving an Album object into the connected database
        /// </summary>
        /// <param name="album">Album object containing new album data</param>
        /// <returns></returns>
        public async Task CreateAlbumAsync(Album album)
        {
            await _context.Album.AddAsync(album);

            await _context.SaveChangesAsync();
        }