Esempio n. 1
0
 public async Task <IActionResult> Delete(int id)
 {
     _writerRepository.Delete(id);
     return(RedirectToAction("Index"));
 }
Esempio n. 2
0
 public ActionResult Delete(int id)
 {
     _writerRepository.Delete(id);
     return(Ok($"Writer {id} Deleted"));
 }