コード例 #1
0
ファイル: DinoService.cs プロジェクト: maziesmith/DinoApp
        public DTOImageCollection GetImageCollection()
        {
            DTOImageCollection test = null;//---Must finish implementation

            test.Add(new DTOImage {
                Name = "test"
            });
            return(test);
        }
コード例 #2
0
ファイル: DinoService.cs プロジェクト: DapperMode/DinoApp
 private DTOImageCollection ConvertToDTOImageCollection(ImageCollection tempList)
 {
     DTOImageCollection returnList = new DTOImageCollection();
     foreach (Image d in tempList)
     {
         DTOImage tempImage = Mapper.Map<DTOImage>(d);
         returnList.Add(tempImage);
     }
     return returnList;
 }
コード例 #3
0
ファイル: DinoService.cs プロジェクト: maziesmith/DinoApp
        private DTOImageCollection ConvertToDTOImageCollection(ImageCollection tempList)
        {
            DTOImageCollection returnList = new DTOImageCollection();

            foreach (Image d in tempList)
            {
                DTOImage tempImage = Mapper.Map <DTOImage>(d);
                returnList.Add(tempImage);
            }
            return(returnList);
        }