Пример #1
0
        public RankDTO InsertRank(RankDTO data)
        {
            Rank rnk = RankRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(RankRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.RankRepository.Create(rnk)));
        }
Пример #2
0
        public RankDTO GetRankByID(int rankId)
        {
            RankDTO rank = RankRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.RankRepository.GetById(rankId));

            return(rank);
        }