예제 #1
0
        public PlaylistController(IPlaylistService playlistService, IUserService userService, IPlaylistFileService playlistFileService)
        {
            _playlistService = playlistService;
            _userService = userService;
            _playlistFileService = playlistFileService;

            ViewBag.IsAdmin = _userService.IsUserInRole("Admin");
        }
예제 #2
0
 public PlaylistService(IRepository<Playlist> playListRepository, IPlaylistFileService playlistFileService, IPlaylistTagService playlistTagService)
 {
     _playListRepository = playListRepository;
     _playlistFileService = playlistFileService;
     _playlistTagService = playlistTagService;
 }