public static IEnumerable <ImageVM> GetAllImages() { List <ImageVM> list = new List <ImageVM>(); foreach (var image in imagesLogic.GetAllImages()) { list.Add((ImageVM)image); } return(list); }
private static void ShowAllImages() { System.Console.WriteLine("List of awards:{0}", Environment.NewLine); ViewImagesFromContainer(imagesBLL.GetAllImages().OrderBy(image => image.DateOfCreating)); System.Console.ReadLine(); }