public TicketLog AttachFilesToTicket(int ticketId, int customFieldId, IList <int> fileIds) { _ticketRepository.AttachFilesToTicket(ticketId, customFieldId, fileIds); var user = GetCurrentUser(); var log = _ticketLogRepository.Insert(ticketId, (int)LogEntryTypeId.TicketEdited, "Ticket was updated: some attachments added.", $"Ticket was updated: some attachments added by {user.Name}.", user.Id); _ticketRepository.UpdateTicketDate(ticketId); return(log); }