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