Пример #1
0
 private void convertToViewable()
 {
     foreach (var element in _dbFonograms)
     {
         _viewableFonograms.Add(DbModelsToViewable.ConvertToFonogramViewable(element as IDbFonogram));
     }
 }
Пример #2
0
        public void Fonogram(IDTO idto)
        {
            Fonogram fonogram    = DtoToDbModels.ConvertToFonogram(idto as IFonogramDTO);
            Fonogram newFonogram = _saver.SaveFonogram(fonogram);

            _viewable = DbModelsToViewable.ConvertToFonogramViewable(newFonogram);
        }
Пример #3
0
        public void Fonogram(IDTO idto)
        {
            Fonogram fonogram = DtoToDbModels.ConvertToFonogram(idto as IFonogramDTO);

            fonogram = Updater.UpdateFonogram(fonogram);

            _viewable = DbModelsToViewable.ConvertToFonogramViewable(fonogram);
        }
Пример #4
0
        public void Fonogram()
        {
            List <Fonogram> fonogrami = GetAll.GetFonogrami();

            foreach (var element in fonogrami)
            {
                _viewable.Add(DbModelsToViewable.ConvertToFonogramViewable(element));
            }
        }
Пример #5
0
        public void Fonogram(IDTO idto)
        {
            Fonogram fonogram = RetrieveFonogram.GetById(idto.Id);

            _viewable = DbModelsToViewable.ConvertToFonogramViewable(fonogram);
        }
Пример #6
0
        public void Fonogram(IDTO idto)
        {
            Fonogram fonogram = Deleter.DeleteFonogram(idto.Id);

            _viewable = DbModelsToViewable.ConvertToFonogramViewable(fonogram);
        }