public void Update(SurveyGeographyDTO surveyGeographyDTO)
        {
            SurveyGeography surveyGeography = Mapper.Map <SurveyGeography>(surveyGeographyDTO);

            _unitOfWork.SurveyGeographies.Update(surveyGeography);
            _unitOfWork.Save();
        }
        public SurveyGeographyDTO Get(int?id)
        {
            if (id == null)
            {
                throw new ArgumentNullException();
            }

            SurveyGeography surveyGeography = _unitOfWork.SurveyGeographies.Get(id);

            if (surveyGeography == null)
            {
                throw new NotFoundException();
            }

            return(Mapper.Map <SurveyGeographyDTO>(surveyGeography));
        }
        public void Delete(int id)
        {
            if (HasRelations(id))
            {
                throw new HasRelationsException();
            }

            SurveyGeography surveyGeography = _unitOfWork.SurveyGeographies.Get(id);

            if (surveyGeography == null)
            {
                throw new NotFoundException();
            }

            _unitOfWork.SurveyGeographies.Delete(id);
            _unitOfWork.Save();
        }
        public SurveyGeographyDTO Get(int id)
        {
            SurveyGeography surveyGeography = _unitOfWork.SurveyGeographies.Get(id);

            return(Mapper.Map <SurveyGeographyDTO>(surveyGeography));
        }