/* * * -----> AUX FUNCTIONS <----- * */ /// <summary> /// carga todos los RssSources en pantalla /// </summary> void LoadAllRssSources() { try { rssSourcesGridView.DataSource = iRssSourceService.GetAll(); rssSourcesGridView.Refresh(); checkEmptyList(); } catch (Exception ex) { MetroMessageBox.Show(this, "detalles del error: " + ex.Message, "Error al obtener las fuentes RSS", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public IList <RssSourceDTO> ListSources() { IList <RssSourceDTO> lResult = new List <RssSourceDTO>(); iUoW.BeginTransaction(); try { foreach (var rss in iServ.GetAll()) { RssSourceDTO lDto = Mapper.Map <RssSource, RssSourceDTO>(rss); lResult.Add(lDto); } } finally { iUoW.Rollback(); } return(lResult); }