public IActionResult Remove(int id) { var ogretmen = _ogretmenService.GetByIdAsync(id).Result; _ogretmenService.Remove(ogretmen); return(NoContent()); }
public async Task <IActionResult> Update(int id) { var ogretmen = await _ogretmenService.GetByIdAsync(id); return(View(_mapper.Map <OgretmenDto>(ogretmen))); }