public IActionResult Delete(Link link) { _repository.Delete(link.Id); return(Redirect(nameof(Index))); }
public IActionResult Delete(int id) { _repository.Delete(id); return(Ok()); }
public IActionResult Delete(Link link) { _repository.Delete(link.Id); return(Redirect(nameof(Index))); }
public IActionResult Delete(int id) { _repository.Delete(id); return(Ok()); }