예제 #1
0
 public static HistoryStatusValunteer convertDtoToDB(HistoryStatusValunteerDto historyStatusValunteerDto)
 {
     return(new HistoryStatusValunteer()
     {
         id = historyStatusValunteerDto.id,
         silencingRingingFromDate = historyStatusValunteerDto.silencingRingingFromDate,
         silencingRingingUntilDate = historyStatusValunteerDto.silencingRingingUntilDate,
         statusValunteerId = historyStatusValunteerDto.statusValunteerId,
         Valunteer = ValunteerDto.convertDtoToDB(historyStatusValunteerDto.ValunteerDto)
     });
 }
예제 #2
0
 public static HistoryStatusValunteerDto convertDBToDto(HistoryStatusValunteer historyStatusValunteer)
 {
     return(new HistoryStatusValunteerDto()
     {
         id = historyStatusValunteer.id,
         silencingRingingFromDate = historyStatusValunteer.silencingRingingFromDate,
         silencingRingingUntilDate = historyStatusValunteer.silencingRingingUntilDate,
         statusValunteerId = historyStatusValunteer.statusValunteerId,
         ValunteerDto = ValunteerDto.convertDBToDto(historyStatusValunteer.Valunteer)
     });
 }
예제 #3
0
 public static Valunteer convertDtoToDB(ValunteerDto valunteerDto)
 {
     return(new Valunteer()
     {
         cityId = valunteerDto.cityId,
         firstName = valunteerDto.firstName,
         lastName = valunteerDto.lastName,
         personalSituationId = valunteerDto.personalSituationId,
         phone = valunteerDto.phone,
         tz = valunteerDto.tz,
         hieghtPointAddress = valunteerDto.hieghtPointAddress,
         widthPointAddress = valunteerDto.widthPointAddress,
         DetailsValunteer = DetailsValunteerDto.convertDtoToDB(valunteerDto.VolunteerDetail),
         addressVolunteer = valunteerDto.addressVolunteer
     });
 }