Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Http;
  6. using Timerman.Data.Entities;
  7. using Timerman.Service.DTO.Entities;
  8.  
  9. namespace Timerman.Service.Interfaces
  10. {
  11. public interface IEventService
  12. {
  13. Task<EventDTO> EventByIdAsync(long eventId);
  14. Task<IList<EventResultDTO>> GetResultForEventAsync(long eventId);
  15. Task<string> getEventResultRRAsync(long eventId);
  16. Task<bool> EventResultRRAsync(string eventId);
  17. Task<IList<EventDTO>> GetAllAsync();
  18. Task<IList<EventAdminDTO>> GetAllAdminAsync();
  19. Task<EventDTO> GetClosestAsync();
  20. Task<EventDTO> AddEventAsync(EventDTO item, string userId, IFormFile file, IFormFile filePreview);
  21. Task<EventDTO> EditEventAsync(long eventId, EventDTO item, string userId, IFormFile file, IFormFile filePreview);
  22. Task DeleteEventAsync(long eventId);
  23. Task UpdateDistancesAsync(long eventId, IList<DistanceDTO> distances);
  24. Task<DistanceViewDTO> GetEventDistanceByIdAsync(long eventId, long distanceId);
  25. Task<IList<DistanceViewDTO>> GetEventDistancesAsync(long eventId);
  26. Task AddDistanceToEventAsync(long eventId, DistanceDTO distance, IFormFile mapPhoto);
  27. Task UpdateEventDistanceAsync(long eventId, long distanceId, DistanceDTO distance, IFormFile mapPhoto);
  28. Task DeleteEventDistanceAsync(long eventId, long distanceId);
  29. Task UpdateActiveStatusAsync(long eventId, bool isActive);
  30. Task<IList<DistanceViewDTO>> GetDistancesByParticipationType(long eventId, long participationType);
  31. Task<IList<EventDTO>> GetEventsByParticipationType(long participationType);
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement