Beispiel #1
0
        public IEnumerable <ItemModel> GetComboItem(int distritoId, int baseId)
        {
            var empresa = (new DAL.DAO.BusinessObjects.EmpresaDAO()).FindById(distritoId);
            var linea   = (new DAL.DAO.BusinessObjects.LineaDAO()).FindById(baseId);

            return(EntityDao.FindByEmpresaYLineaAndUser(empresa, linea, Usuario)
                   .Select(t => Mapper.ToItem(t)).OrderBy(m => m.Value).ToList());
        }