public ActionResult Delete(int id) { _tipRepository.Delete(_tipRepository.Get(id)); if (_tipRepository.Save()) { return(Ok()); } return(Ok("eroare")); }
public void DeleteTip(Tip tip) => tipRepository.Delete(tip);
public ActionResult Delete(int id) { _tipRepository.Delete(_tipRepository.Get(id)); if (_tipRepository.Save()) { return(Ok()); } return(Ok("eroare")); }
public void DeleteTip(Tip tip) => tipRepository.Delete(tip);