public static DetailsValunteer convertDtoToDB(DetailsValunteerDto detailsValunteerDto)
 {
     return(new DetailsValunteer()
     {
         silencingRingingFronDate = detailsValunteerDto.silencingRingingFronDate,
         silencingRingingUntilDate = detailsValunteerDto.silencingRingingUntilDate,
         statusValunteerId = detailsValunteerDto.statusValunteerId
     });
 }
Пример #2
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
     });
 }
Пример #3
0
 public static ValunteerDto convertDBToDto(Valunteer valunteer)
 {
     return(new ValunteerDto()
     {
         cityId = valunteer.cityId,
         firstName = valunteer.firstName,
         lastName = valunteer.lastName,
         personalSituationId = valunteer.personalSituationId,
         phone = valunteer.phone,
         tz = valunteer.tz,
         hieghtPointAddress = valunteer.hieghtPointAddress,
         widthPointAddress = valunteer.widthPointAddress,
         VolunteerDetail = DetailsValunteerDto.convertDBToDto(valunteer.DetailsValunteer),
         addressVolunteer = valunteer.addressVolunteer
     });
 }