Пример #1
0
 private void convertToViewable()
 {
     foreach (var element in _dbAlbums)
     {
         _viewableAlbums.Add(DbModelsToViewable.ConvertToAlbumViewable(element as IDbAlbum));
     }
 }
Пример #2
0
        public void Album(IDTO idto)
        {
            Album album = DtoToDbModels.ConvertToAlbum(idto as IAlbumDTO);

            album = Updater.UpdateAlbum(album);

            _viewable = DbModelsToViewable.ConvertToAlbumViewable(album);
        }
Пример #3
0
        public void Album()
        {
            List <Album> albumi = GetAll.GetAlbumi();

            foreach (var element in albumi)
            {
                _viewable.Add(DbModelsToViewable.ConvertToAlbumViewable(element));
            }
        }
Пример #4
0
        public void Album(IDTO idto)
        {
            Album album = RetrieveAlbum.GetById(idto.Id);

            _viewable = DbModelsToViewable.ConvertToAlbumViewable(album);
        }
Пример #5
0
        public void Album(IDTO idto)
        {
            Album album = Deleter.DeleteAlbum(idto.Id);

            _viewable = DbModelsToViewable.ConvertToAlbumViewable(album);
        }