public BE.Equipo ObtnerEquipoPorIdReducido(int idEquipo) { BLL.Categoria bllCategoria = new BLL.Categoria(); BE.Equipo beEquipo = _dalManagerEquipo.ObtenerEquipoPorId(idEquipo); beEquipo.Categoria = bllCategoria.ObtnerCategoriaPorIdReducido(beEquipo.Categoria.Id); return(beEquipo); }
public List <BE.NivelRegla> ObtenerReglasPorNivelId(int idNivel) { BLL.Categoria bllCategoria = new BLL.Categoria(); BLL.TipoArbitro bllTipoArbitro = new BLL.TipoArbitro(); List <BE.NivelRegla> lstNivelReglas = _dalManagerNivelRegla.ObtenerReglasPorNivelId(idNivel); foreach (BE.NivelRegla beNivelRegla in lstNivelReglas) { beNivelRegla.Categoria = bllCategoria.ObtnerCategoriaPorIdReducido(beNivelRegla.Categoria.Id); beNivelRegla.TipoArbitro = bllTipoArbitro.ObtnerTipoArbitroPorIdReducido(beNivelRegla.TipoArbitro.Id); } return(lstNivelReglas); }