public Task MarkShared(SharedTicket share) { if (share == null) { throw new ArgumentNullException(nameof(share)); } return(MarkShared(share.Response.Ticket, share.Reason)); }
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()); }