Example #1
0
        // GET: Admin/Specialities
        public async Task <IActionResult> Index()
        {
            var specialities = _service.GetAll();

            return(View(specialities));
        }
Example #2
0
 // GET: Medics/Create
 public IActionResult Create()
 {
     ViewData["SpecialityId"] = new SelectList(_specialityAppService.GetAll(), "Id", "Name");
     return(View());
 }