public async Task <ActionResult <DegreeForReturnDto> > Delete(int itemId) { return(await degreeService.Delete(itemId)); }
public async Task <IActionResult> delete(int id) { await _service.Delete(id); return(RedirectToAction("index")); }