Example #1
0
        public async Task <IActionResult> Index()
        {
            var ogretmenler = await _ogretmenService.GetAllAsync();

            return(View(_mapper.Map <IEnumerable <OgretmenDto> >(ogretmenler)));
        }
Example #2
0
        public async Task <IActionResult> GetAll()
        {
            var ogretmenler = await _ogretmenService.GetAllAsync();

            return(Ok(ogretmenler));
        }