Example #1
0
 public List<BLL.User> GetUsers(BLL.SessionToken token, BLL.PagingData page)
 {
     var result = AdminAccessWs.GetUsers(
         token.ToWebSeriveObject<WS.SessionToken>(),
         page.ToWebSeriveObject<WS.PagingData>());
     return ProxyHelper.ToListOf<WS.User, BLL.User>(result);
 }
Example #2
0
 public List<BLL.Performance> GetPerformancePerArtist(BLL.Artist artist)
 {
     return ProxyHelper.ToListOf<WS.Performance, BLL.Performance>(
         _viewAccessWs.GetPerformancesPerArtist(artist.ToWebSeriveObject<WS.Artist>()));
 }
 public static async Task<List<BLL.Performance>> GetPerformancesPerArtistAsync(this IViewAccessBll accessBll, BLL.Artist artist)
 {
     return ProxyHelper.ToListOf<WS.Performance, BLL.Performance>(
         await ViewAccessWs.GetPerformancesPerArtistAsync(artist.ToWebSeriveObject<WS.Artist>()));
 }
Example #4
0
 public bool ModifyLocation(BLL.SessionToken token, BLL.Location location)
 {
     var locationWs = location.ToWebSeriveObject<WS.Location>();
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.ModifyLocation(tokenWs, locationWs);
 }
Example #5
0
 public bool ModifyArtist(BLL.SessionToken token, BLL.Artist artist)
 {
     var artistWs = artist.ToWebSeriveObject<WS.Artist>();
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.ModifyArtist(tokenWs, artistWs);
 }
Example #6
0
 public bool LoginAdmin(BLL.SessionToken token)
 {
     return AdminAccessWs.LoginAdmin(token.ToWebSeriveObject<WS.SessionToken>());
 }
Example #7
0
 public bool DelayPerformance(BLL.SessionToken token, BLL.Performance oldPerformance, BLL.Performance newPerformance)
 {
     return AdminAccessWs.DelayPerformance(token.ToWebSeriveObject<WS.SessionToken>(),
         oldPerformance.ToWebSeriveObject<WS.Performance>(), newPerformance.ToWebSeriveObject<WS.Performance>());
 }
 public static async Task<bool> SendNotificationAsync(this IAdminAccessBll accessBll, BLL.SessionToken token, BLL.Notification notification)
 {
     return await AdminAccessWs.SendNotificationAsync(token.ToWebSeriveObject<WS.SessionToken>(),
         notification.ToWebSeriveObject<WS.Notification>());
 }
 public static async Task<bool> DelayPerformanceAsync(this IAdminAccessBll accessBll, BLL.SessionToken token, BLL.Performance oldPerformance, BLL.Performance newPerformance)
 {
     return await AdminAccessWs.DelayPerformanceAsync(token.ToWebSeriveObject<WS.SessionToken>(),
         oldPerformance.ToWebSeriveObject<WS.Performance>(), newPerformance.ToWebSeriveObject<WS.Performance>());
 }
 public static async Task<bool> RemoveLocationAsync(this IAdminAccessBll accessBll, BLL.SessionToken token, BLL.Location location)
 {
     var locationWs = location.ToWebSeriveObject<WS.Location>();
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return await AdminAccessWs.RemoveLocationAsync(tokenWs, locationWs);
 }
 public static async Task<List<string>> GetUserAutoCompletionAsync(this IAdminAccessBll accessBll, BLL.SessionToken token, string keyword)
 {
     return (await AdminAccessWs.GetUserAutoCompletionAsync(
         token.ToWebSeriveObject<WS.SessionToken>(),
         keyword))?.ToList();
 }
 public static async Task<bool> ModifyLocationRangeAsync(this IAdminAccessBll accessBll, BLL.SessionToken token, List<BLL.Location> locations)
 {
     var locationsWs = ProxyHelper.ToArrayOf<BLL.Location, WS.Location>(locations);
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return await AdminAccessWs.ModifyLocationRangeAsync(tokenWs, locationsWs);
 }
 public static async Task<bool> RemovePerformanceAsync(this IAdminAccessBll accessBll, BLL.SessionToken token, BLL.Performance performance)
 {
     var performanceWs = performance.ToWebSeriveObject<WS.Performance>();
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return await AdminAccessWs.RemovePerformanceAsync(tokenWs, performanceWs);
 }
Example #14
0
 public List<BLL.Performance> GetPerformancePerVenue(BLL.Venue venue)
 {
     return ProxyHelper.ToListOf<WS.Performance, BLL.Performance>(
         _viewAccessWs.GetPerformancesPerVenue(venue.ToWebSeriveObject<WS.Venue>()));
 }
Example #15
0
 public List<BLL.User> SearchUsersPerKeyword(BLL.SessionToken token, string keyword)
 {
     var result = AdminAccessWs.SearchUsersPerKeyword(
         token.ToWebSeriveObject<WS.SessionToken>(),
         keyword);
     return ProxyHelper.ToListOf<WS.User, BLL.User>(result);
 }
Example #16
0
 public bool ModifyLocationRange(BLL.SessionToken token, List<BLL.Location> locations)
 {
     var locationsWs = ProxyHelper.ToArrayOf<BLL.Location, WS.Location>(locations);
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.ModifyLocationRange(tokenWs, locationsWs);
 }
Example #17
0
 public bool SendNotification(BLL.SessionToken token, BLL.Notification notification)
 {
     return AdminAccessWs.SendNotification(token.ToWebSeriveObject<WS.SessionToken>(),
         notification.ToWebSeriveObject<WS.Notification>());
 }
Example #18
0
 public bool ModifyPerformanceRange(BLL.SessionToken token, List<BLL.Performance> performances)
 {
     var performancesWs = ProxyHelper.ToArrayOf<BLL.Performance, WS.Performance>(performances);
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.ModifyPerformanceRange(tokenWs, performancesWs);
 }
Example #19
0
 public List<string> GetUserAutoCompletion(BLL.SessionToken token, string keyword)
 {
     return AdminAccessWs.GetUserAutoCompletion(
         token.ToWebSeriveObject<WS.SessionToken>(),
         keyword).ToList();
 }
Example #20
0
 public bool ModifyVenueRange(BLL.SessionToken token, List<BLL.Venue> venues)
 {
     var venuesWs = ProxyHelper.ToArrayOf<BLL.Venue, WS.Venue>(venues);
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.ModifyVenueRange(tokenWs, venuesWs);
 }
Example #21
0
 public bool IsUserAuthenticated(BLL.SessionToken token)
 {
     return AdminAccessWs.IsUserAuthenticated(token.ToWebSeriveObject<WS.SessionToken>());
 }
Example #22
0
 public bool RemovePerformance(BLL.SessionToken token, BLL.Performance performance)
 {
     var performanceWs = performance.ToWebSeriveObject<WS.Performance>();
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.RemovePerformance(tokenWs, performanceWs);
 }
Example #23
0
 public void LogoutAdmin(BLL.SessionToken token)
 {
     AdminAccessWs.LogoutAdmin(token.ToWebSeriveObject<WS.SessionToken>());
 }
Example #24
0
 public bool RemoveVenue(BLL.SessionToken token, BLL.Venue venue)
 {
     var venueWs = venue.ToWebSeriveObject<WS.Venue>();
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.RemoveVenue(tokenWs, venueWs);
 }
Example #25
0
 public bool ModifyArtistRange(BLL.SessionToken token, List<BLL.Artist> artists)
 {
     var artistsWs = ProxyHelper.ToArrayOf<BLL.Artist, WS.Artist>(artists);
     var tokenWs = token.ToWebSeriveObject<WS.SessionToken>();
     return AdminAccessWs.ModifyArtistRange(tokenWs, artistsWs);
 }
Example #26
0
 public BLL.SessionToken RequestSessionToken(BLL.User user)
 {
     var result = AdminAccessWs.RequestSessionToken(user.ToWebSeriveObject<WS.User>());
     return result.ToDomainObject<BLL.SessionToken>();
 }
 public static async Task<List<BLL.Performance>> GetPerformancesAsync(this IViewAccessBll accessBll, BLL.PagingData page)
 {
     return ProxyHelper.ToListOf<WS.Performance, BLL.Performance>(
         await ViewAccessWs.GetPerformancesAsync(page.ToWebSeriveObject<WS.PagingData>()));
 }
Example #28
0
 public BLL.PagingData RequestUserPagingData(BLL.SessionToken token)
 {
     return AdminAccessWs.RequestUserPagingData(
         token.ToWebSeriveObject<WS.SessionToken>()).ToDomainObject<BLL.PagingData>();
 }
 public static async Task<List<BLL.Performance>> GetPerformancesPerVenueAsync(this IViewAccessBll accessBll, BLL.Venue venue)
 {
     return ProxyHelper.ToListOf<WS.Performance, BLL.Performance>(
         await ViewAccessWs.GetPerformancesPerVenueAsync(venue.ToWebSeriveObject<WS.Venue>()));
 }
Example #30
0
 public List<BLL.Location> GetLocations(BLL.PagingData page)
 {
     return ProxyHelper.ToListOf<WS.Location, BLL.Location>(
         _viewAccessWs.GetLocations(page.ToWebSeriveObject<WS.PagingData>()));
 }