public async Task <ActionResult <Film> > GetFilmById(int id) { var Film = await _dataRepository.GetById(id); if (Film.Value == null) { return(NotFound()); } return(Film); }
public async Task <ActionResult <Compte> > GetCompteById(int id) { var compte = await _dataRepository.GetById(id); if (compte.Value == null) { return(NotFound()); } return(compte); }