Ejemplo n.º 1
0
        // GET: SpecialitiesController
        public IActionResult Index()
        {
            var model = _specialityRepository.GetSpecialitiesWithRooms()
                        .Select(s => new IndexViewModel
            {
                Id            = s.Id,
                Name          = s.Name,
                NumberOfRooms = s.NumberOfRooms
            });

            return(View(model));
        }