public async Task <ActionResult> Delete(int id, IFormCollection collection) { var amendment = await _amendmentService.GetAsync(id); if (amendment == null) { return(NotFound()); } await _amendmentService.DeleteAsync(amendment, User.UserId()); return(RedirectToAction(nameof(Index))); }