private async Task SendUserResponedOnTicketEmailToSupport(UserRespondToTicketRequest req) { var title = $"User responed on : {req.SteamId} - {req.TicketId}"; var body = req.Message.MessageBody; await SendEmailToSupport(body, title); }
public async Task <SingleTicketResponse> UserRespondToTicket(UserRespondToTicketRequest req) { var res = await _ticketServiceClient.UserRespondToTicket(req); if (res.DataCase == SingleTicketResponse.DataOneofCase.Ticket) { await SendUserResponedOnTicketEmailToSupport(req); } return(res); }
public Task <SingleTicketResponse> UserRespondToTicket(UserRespondToTicketRequest req) { return(SendGrpcAction(async() => await _ticketServiceClient.UserRespondToTicketAsync(req, DefaultSettings.GetDefaultSettings(5)))); }