Пример #1
0
 public static string GetAllMockDataAsString()
 {
     return(JsonConvert.SerializeObject(MockedPhotos.Get()));
 }
Пример #2
0
        public static List <Photo> GetAllMockDataAsListOfPhotosByAlbumId(int albumId)
        {
            var photos = MockedPhotos.Get();

            return(photos.FindAll(photo => photo.AlbumId == albumId));
        }
Пример #3
0
        public static string GetAllMockDataAsStringByAlbumId(int albumId)
        {
            var photos = MockedPhotos.Get();

            return(JsonConvert.SerializeObject(photos.FindAll(photo => photo.AlbumId == albumId)));
        }
Пример #4
0
 public static List <Photo> GetAllMockDataAsListOfPhotos()
 {
     return(MockedPhotos.Get());
 }