示例#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);
 }
示例#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>()));
 }
示例#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);
 }
示例#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);
 }
示例#6
0
 public bool LoginAdmin(BLL.SessionToken token)
 {
     return AdminAccessWs.LoginAdmin(token.ToWebSeriveObject<WS.SessionToken>());
 }
示例#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);
 }
示例#14
0
 public List<BLL.Performance> GetPerformancePerVenue(BLL.Venue venue)
 {
     return ProxyHelper.ToListOf<WS.Performance, BLL.Performance>(
         _viewAccessWs.GetPerformancesPerVenue(venue.ToWebSeriveObject<WS.Venue>()));
 }
示例#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);
 }
示例#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);
 }
示例#17
0
 public bool SendNotification(BLL.SessionToken token, BLL.Notification notification)
 {
     return AdminAccessWs.SendNotification(token.ToWebSeriveObject<WS.SessionToken>(),
         notification.ToWebSeriveObject<WS.Notification>());
 }
示例#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);
 }
示例#19
0
 public List<string> GetUserAutoCompletion(BLL.SessionToken token, string keyword)
 {
     return AdminAccessWs.GetUserAutoCompletion(
         token.ToWebSeriveObject<WS.SessionToken>(),
         keyword).ToList();
 }
示例#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);
 }
示例#21
0
 public bool IsUserAuthenticated(BLL.SessionToken token)
 {
     return AdminAccessWs.IsUserAuthenticated(token.ToWebSeriveObject<WS.SessionToken>());
 }
示例#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);
 }
示例#23
0
 public void LogoutAdmin(BLL.SessionToken token)
 {
     AdminAccessWs.LogoutAdmin(token.ToWebSeriveObject<WS.SessionToken>());
 }
示例#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);
 }
示例#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);
 }
示例#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>()));
 }
示例#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>()));
 }
示例#30
0
 public List<BLL.Location> GetLocations(BLL.PagingData page)
 {
     return ProxyHelper.ToListOf<WS.Location, BLL.Location>(
         _viewAccessWs.GetLocations(page.ToWebSeriveObject<WS.PagingData>()));
 }