コード例 #1
0
 public Task MarkShared(SharedTicket share)
 {
     if (share == null)
     {
         throw new ArgumentNullException(nameof(share));
     }
     return(MarkShared(share.Response.Ticket, share.Reason));
 }
コード例 #2
0
        public async Task <Option <SharedTicket> > GetTicketForSharing(long id)
        {
            var response = await api.GetTicketWithRequiredSideloads(id);

            var comments = await api.GetTicketComments(response.Ticket);

            var audits = await api.GetTicketAudits(response.Ticket);

            return(await SharedTicket.Create(response, comments, audits).ToOption());
        }