private void SaveExecute(object obj) { if (NewPatient.BirthDate == default(DateTimeOffset)) { NewPatient.BirthDate = DateTimeOffset.Now; } if (NewPatient.Photo == null) { NewPatient.Photo = string.Empty; } _patientDataService.AddNewPatient(NewPatient.ToModel()); Messenger.Default.Send(new NewPatientAddedMessage()); _dialogService.CloseNewPatientDialog(); }