public IActionResult Delete(int id) { _repository.Delete(id); return(RedirectToAction("Index")); }
public async Task <IActionResult> Delete(Guid dogId, Guid shelterId) { await _dogRepo.Delete(dogId); return(RedirectToAction("Index", new { shelterId })); }