Example #1
0
        public static TicketDetailResponse PostMessage(int ticketId, string message)
        {
            Helpdesk.Service     service = new Helpdesk.Service(ApiUrl, ApiKey);
            TicketDetailResponse result  = service.PostMessage(ticketId, message);

            return(result);
        }
Example #2
0
        private static GenericResult HelpdeskPostMessage(int ticketId, string message, IClient currentUser)
        {
            var result = new GenericResult();
            var svc    = new Helpdesk.Service(ConfigurationManager.AppSettings["HelpdeskUrl"], ConfigurationManager.AppSettings["HelpdeskApiKey"]);
            TicketDetailResponse response = svc.PostMessage(ticketId, message);

            result.Success = !response.Error;
            result.Message = response.Message;
            result.Data    = new { response.Detail, currentUser.DisplayName, currentUser.Email };
            return(result);
        }