示例#1
0
        public IActionResult Remove(int id)
        {
            var ogretmen = _ogretmenService.GetByIdAsync(id).Result;

            _ogretmenService.Remove(ogretmen);
            return(NoContent());
        }
示例#2
0
        public async Task <IActionResult> Update(int id)
        {
            var ogretmen = await _ogretmenService.GetByIdAsync(id);

            return(View(_mapper.Map <OgretmenDto>(ogretmen)));
        }