public Note SaveNote(Note mNote) { var ticket = ticketRepository.SaveTicket(mNote.ticket); if (ticket.id > 0) { mNote.ticketId = ticket.id; mNote.triage.ticketId = ticket.id; } var triage = triageRepository.SaveTriage(mNote.triage); if (triage.id > 0) { mNote.triageId = triage.id; } return(noteRepository.SaveNote(mNote)); }
public Triage SaveTriage(Triage triage) { return(triageRepository.SaveTriage(triage)); }