public PersonViewModel Save(PersonViewModel vm) { var dto = Mapper.Map <PersonDTO>(vm); dto = _personAccessor.Save(dto); vm = Mapper.Map <PersonViewModel>(dto); return(vm); }
public PersonViewModel Save(PersonViewModel vm) { var dto = Mapper.Map <PersonDTO>(vm); try { _XmlReader(vm.Biography); } catch (System.Exception e) { } dto = _personAccessor.Save(dto); vm = Mapper.Map <PersonViewModel>(dto); return(vm); }