| | |
| | | /// <param name="phoneNumber"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task<PromoterDto> GetPromoter(string phoneNumber) |
| | | { |
| | | return await promoterService.GetPromoter(phoneNumber); |
| | |
| | | /// <returns></returns> |
| | | /// <exception cref="FriendlyException"></exception> |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task<ChannelConsultationDto> GetChannelConsultationById(Guid id) |
| | | { |
| | | return await promoterService.GetChannelConsultationById(id); |
| | |
| | | /// <exception cref="FormatException"></exception> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | public async Task<Guid> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input) |
| | | public async Task<CreateOrUpdatePromoterOutput> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input) |
| | | { |
| | | return await promoterService.CreateOrUpdatePromoter(input); |
| | | } |