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

            return(RedirectToAction("Index", new { shelterId }));
        }