Esempio n. 1
0
        public int Add(PersonDTO person)
        {
            using (_unitOfWork)
            {
                var result = _unitOfWork.Persons.Add(PersonMapper.ToPerson(person));
                _unitOfWork.Save();

                return(result);
            }
        }