public IActionResult Delete(int id) { var flower = _flowerRepository.GetById(id); _flowerRepository.Delete(flower); return(RedirectToAction("List")); }
public Flower GetById(int id) { return(_flowerRepository.GetById(id)); }
public IActionResult Delete(int id) { var flower = _flowerRepository.GetById(id); _flowerRepository.Delete(flower); return(RedirectToAction("List")); }
public Flower GetById(int id) { return(_flowerRepository.GetById(id)); }