private HelpDesk_TicketDocuments mapViewModelToEntityTicketDocuments(HelpDesk_TicketDocuments_vm VMTicketDocument)
 {
     return(new HelpDesk_TicketDocuments
     {
         DocumentPath = VMTicketDocument.DocumentPath,
         Id = VMTicketDocument.Id ?? 0,
         TicketID = VMTicketDocument.TicketID
     });
 }
Exemple #2
0
 /// <summary>
 /// Posts the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public int Post([FromBody] HelpDesk_TicketDocuments_vm value)
 {
     _logger.Info("Adding a new document.");
     return(_helpDeskTicketDocumentManager.SaveDocument(value));
 }
 public int SaveDocument(HelpDesk_TicketDocuments_vm document)
 {
     return(_helpDeskTicketDocumentRepository.SaveDocument(mapViewModelToEntityTicketDocuments(document)));
 }