Ejemplo n.º 1
0
 public static CandidateListEntryEntity Map(this ContenderListEntry entry, Guid listId)
 {
     return(new CandidateListEntryEntity
     {
         candidateListId = listId,
         candidateId = entry.ContenderId,
         createdTime = entry.CreatedTime,
         jobApplicationId = entry.ApplicationId,
         jobApplicationStatus = (byte)entry.ApplicantStatus,
     });
 }
Ejemplo n.º 2
0
 void IContenderListsCommand.CreateEntry(Guid listId, ContenderListEntry contenderListEntry)
 {
     contenderListEntry.Prepare();
     contenderListEntry.Validate();
     _repository.CreateEntry(listId, contenderListEntry);
 }