Пример #1
0
        public EthnicityDTO InsertEthnicity(EthnicityDTO data)
        {
            Ethnicity dataToInsert = new Ethnicity();

            dataToInsert = EthnicityRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(EthnicityRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EthnicityRepository.Create(dataToInsert)));
        }
Пример #2
0
 public EthnicityDTO GetEthnicityById(int id)
 {
     return(EthnicityRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EthnicityRepository.GetById(id)));
 }