Пример #1
0
        public async Task <int> AddSongThemeAsync(int songId, int themeId, string userId)
        {
            var songThemeId = await _themeRepository.AddSongThemeAsync(new SongTheme
            {
                SongId           = songId,
                ThemeId          = themeId,
                CreatedById      = userId,
                LastModifiedById = userId,
                DateCreated      = DateTime.Now,
                DateLastModified = DateTime.Now
            });

            await AddSongThemeUserAsync(songThemeId, userId);

            return(songThemeId);
        }