public static StandardAppointment FromStandardAppointmentDto(this StandardAppointmentDto from) { var to = from.ConvertTo <StandardAppointment>(); //to.StandardAppointmentExceptions = from.StandardAppointmentExceptions.ConvertAll(x => x.ConvertTo<StandardAppointmentException>()); return(to); }
public static StandardAppointmentDto ToStandardAppointmentDto(this StandardAppointment from) { StandardAppointmentDto to = from.ConvertTo <StandardAppointmentDto>(); //to.StandardAppointmentExceptions = from.StandardAppointmentExceptions.ToList().ConvertAll(x => x.ConvertTo<StandardAppointmentExceptionDto>()); return(to); }