Esempio n. 1
0
        public IActionResult Blog()
        {
            ViewData["Title"] = "Üniversiteler";

            ViewData["videolar"] = _videoServices.GetAllAsync().Result.ToList();

            return(View());
        }
Esempio n. 2
0
        public async Task <IActionResult> GetAll()
        {
            var video = await _videoservices.GetAllAsync();

            return(Ok(_mapper.Map <IEnumerable <VideoDto> >(video)));
        }