Example #1
0
        public void Update(PersonDTO obj)
        {
            var objPerson = _mapper.Map <Person>(obj);

            _servicePerson.Update(objPerson);
        }
        protected override void Handle(PersonUpdateCommand request)
        {
            var person = _mapper.Map <PersonUpdateDto, Person>(request.Person);

            _servicePerson.Update(person);
        }