internal Ticket Edit(Ticket ticket) { Ticket currentTicket = GetById(ticket.TicketId); if (ticket.FilePath == null) { ticket.FilePath = currentTicket.FilePath; } if (ticket.Setup == null) { ticket.Setup = currentTicket.Setup; } if (ticket.Steps == null) { ticket.Steps = currentTicket.Steps; } if (ticket.Verifications == null) { ticket.Verifications = currentTicket.Verifications; } if (ticket.PriorityLevel == null) { ticket.PriorityLevel = currentTicket.PriorityLevel; } if (ticket.Notes == null) { ticket.Notes = currentTicket.Notes; } if (ticket.Automate == false) { ticket.Automate = currentTicket.Automate; } if (ticket.IosStatus == null) { ticket.IosStatus = currentTicket.IosStatus; } if (ticket.AndroidStatus == null) { ticket.AndroidStatus = currentTicket.AndroidStatus; } if (ticket.webStatus == null) { ticket.webStatus = currentTicket.webStatus; } return(_ticketRepo.Edit(ticket)); }
public void EditTicket(int Id) { var ticket = _repo.Get(Id); _repo.Edit(ticket); }