public async Task <DTO.TicketComment> UpdateTicketComment(DTO.Ticket ticket, DTO.TicketComment ticketComment) { AdditionalUriParameters = new string[] { ticket.Number.ToString(), "ticket_comments" }; var data = await UpdateAsync(ticketComment); //ticket.Comments.Single(c=> c.Id == ticketComment.Id) = data; return(data); }
public async Task <DTO.TicketComment> AddCommentToTicketAsync(DTO.Ticket ticket, string comment) { AdditionalUriParameters = new string[] { ticket.Number.ToString(), "ticket_comments" }; var ticketComment = new DTO.TicketComment() { Comment = comment }; var data = await CreateAsync(ticketComment); ticket.Comments.Add(data); return(data); }