Esempio n. 1
0
        public async Task <ActionResult <Film> > GetFilmById(int id)
        {
            var Film = await _dataRepository.GetById(id);

            if (Film.Value == null)
            {
                return(NotFound());
            }

            return(Film);
        }
Esempio n. 2
0
        public async Task <ActionResult <Compte> > GetCompteById(int id)
        {
            var compte = await _dataRepository.GetById(id);

            if (compte.Value == null)
            {
                return(NotFound());
            }

            return(compte);
        }