Ejemplo n.º 1
0
        public ReferenceListsModel ReferenceLists()
        {
            var referenceLists = _referenceListRepository.Fetch(q => q.OrderBy(x => x.SystemName));

            var model = new ReferenceListsModel
            {
                Lists = Mapper.Map <IEnumerable <ReferenceListsModel.ReferenceList> >(referenceLists)
            };

            return(model);
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            ReferenceListsModel model = _referenceListService.ReferenceLists();

            return(View(model));
        }