public ActionResult Delete(int id)
        {
            _tipRepository.Delete(_tipRepository.Get(id));

            if (_tipRepository.Save())
            {
                return(Ok());
            }

            return(Ok("eroare"));
        }
Exemple #2
0
 public void DeleteTip(Tip tip) => tipRepository.Delete(tip);