예제 #1
0
 public async Task <int> AddSongThemeUserAsync(int songThemeId, string userId)
 {
     try
     {
         return(await _themeRepository.AddSongThemeUserAsync(new SongThemeUser
         {
             SongThemeId = songThemeId,
             ApplicationUserId = userId,
             CreatedById = userId,
             LastModifiedById = userId,
             DateCreated = DateTime.Now,
             DateLastModified = DateTime.Now,
         }));
     }
     catch (Exception ex)
     {
         return(-1);
     }
 }