public ActionResult <List <Tip> > Get()
        {
            var tips = _tipRepository.GetAll();

            if (tips != null)
            {
                return(Ok(tips));
            }

            return(Ok("eroare"));
        }
Exemple #2
0
 public IEnumerable <Tip> GetTips() => tipRepository.GetAll();