public IActionResult Delete(int id) { if (ModelState.IsValid) { _mangaService.DeleteManga(id); return(RedirectToAction("Index", "Mangas")); } return(RedirectToAction("Index", "Mangas")); }
public async Task <MangaDTO> Delete(int id) { return(await animeService.DeleteManga(id)); }