public ResponseDto <List <LanguageDto> > GetList() { ResponseBo <List <LanguageBo> > responseBo = languageBusiness.GetList(); ResponseDto <List <LanguageDto> > responseDto = responseBo.ToResponseDto <List <LanguageDto>, List <LanguageBo> >(); if (responseBo.IsSuccess && responseBo.Bo != null) { responseDto.Dto = new List <LanguageDto>(); LanguageDto lang = null; foreach (LanguageBo item in responseBo.Bo) { lang = new LanguageDto { Id = item.Id, Name = item.Name, CultureCode = item.CultureCode }; responseDto.Dto.Add(lang); } } return(responseDto); }