示例#1
0
        public bool UpdatePersonalData(PersonalDataDTO personalData)
        {
            try
            {
                this.accountUnitOfWork.PersonalDataRepository.Update(
                    ObjectMapper <PersonalDataDTO, PersonalDataEntity> .Map(personalData));
                this.accountUnitOfWork.SaveChanges();
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
 public void Remove(PersonalDataDTO personalData)
 {
     PersonalDataList.Remove(personalData);
 }