public IActionResult Delete(int id) { _candyRepo.Delete(id); return(RedirectToAction("Index")); }
public void Delete(int id) { _candyRepository.Delete(id); }
public void Delete(Candy candy) { _candyRepository.Delete(candy); }
public IActionResult Delete(int id) { _candyRepo.Delete(id); return(RedirectToAction("Index")); }
public void Delete(int id) { _candyRepository.Delete(id); }
public void Delete(Candy candy) { _candyRepository.Delete(candy); }