private void convertToViewable() { foreach (var element in _dbFonograms) { _viewableFonograms.Add(DbModelsToViewable.ConvertToFonogramViewable(element as IDbFonogram)); } }
public void Fonogram(IDTO idto) { Fonogram fonogram = DtoToDbModels.ConvertToFonogram(idto as IFonogramDTO); Fonogram newFonogram = _saver.SaveFonogram(fonogram); _viewable = DbModelsToViewable.ConvertToFonogramViewable(newFonogram); }
public void Fonogram(IDTO idto) { Fonogram fonogram = DtoToDbModels.ConvertToFonogram(idto as IFonogramDTO); fonogram = Updater.UpdateFonogram(fonogram); _viewable = DbModelsToViewable.ConvertToFonogramViewable(fonogram); }
public void Fonogram() { List <Fonogram> fonogrami = GetAll.GetFonogrami(); foreach (var element in fonogrami) { _viewable.Add(DbModelsToViewable.ConvertToFonogramViewable(element)); } }
public void Fonogram(IDTO idto) { Fonogram fonogram = RetrieveFonogram.GetById(idto.Id); _viewable = DbModelsToViewable.ConvertToFonogramViewable(fonogram); }
public void Fonogram(IDTO idto) { Fonogram fonogram = Deleter.DeleteFonogram(idto.Id); _viewable = DbModelsToViewable.ConvertToFonogramViewable(fonogram); }