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

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

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