//// GET: Newsletters/Delete/5 public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var newsletter = await _newsletterRepository.FindByIdAsync(id); if (newsletter == null) { return(NotFound()); } return(View(newsletter)); }