// GET: Entreprises/Details/5
        public IActionResult Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var entrepriseDto = _entrepriseService.FindById((int)id);

            if (entrepriseDto == null)
            {
                return(NotFound());
            }

            return(View(entrepriseDto));
        }
        // GET: Services/Details/5
        public IActionResult Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var serviceDto = _serviceService.FindById((int)id);

            serviceDto.Entreprise = _entrepriseService.FindById(serviceDto.EntrepriseId);
            if (serviceDto == null)
            {
                return(NotFound());
            }


            return(View(new ServiceViewModel(_context, _entrepriseService)
            {
                Entreprise = serviceDto.Entreprise,
                Id = serviceDto.Id,
                Name = serviceDto.Name
            }));
        }