Esempio n. 1
0
 public static ReportRequestDto AsDto(this ReportRequestDocument document)
 => new ReportRequestDto
 {
     Id          = document.Id,
     RequestDate = document.RequestDate,
     State       = document.State.ToString()
 };
Esempio n. 2
0
 public static ReportDetailDto AsDetailDto(this ReportRequestDocument document)
 => new ReportDetailDto
 {
     Id            = document.Id,
     State         = document.State.ToString(),
     RequestDate   = document.RequestDate,
     ReportResults = document.ReportResults.Select(p => new ReportDto
     {
         ContactCount     = p.ContactCount,
         Location         = p.Location,
         PhoneNumberCount = p.PhoneNumberCount
     })
 };
Esempio n. 3
0
 public static ReportRequest AsEntity(this ReportRequestDocument reportRequest)
 => new ReportRequest(reportRequest.Id,
                      reportRequest.RequestDate,
                      reportRequest.State);