Exemplo n.º 1
0
        public List <DTO_CHLD_StudentImage> GetStudentImages(DTO_CORE_Student request)
        {
            using (var context = new DB_connection())
            {
                var imageList = context.proc_GetStudentImages(request.StudentID).ToList();

                List <DTO_CHLD_StudentImage> results = new List <DTO_CHLD_StudentImage>();

                foreach (var image in imageList)
                {
                    results.Add(new DTO_CHLD_StudentImage
                    {
                        ImageID   = image.ImageID,
                        ImageName = image.ImageName,
                        ImageURL  = image.ImageURL,
                        ImageUUID = image.ImageUUID
                    });
                }

                return(results);
            }
        }