public Compte GetByInstallationId(int id)
        {
            Installation installation = installationRepository.GetById(id);

            return(_SolutionCleanCabloPlusContext.Comptes
                   .Include(c => c.installations)
                   .Where(c => c.installations.Contains(installation))
                   .FirstOrDefault());
        }
 public InstallationModel getInstallation(int installationid)
 {
     try
     {
         return(irepo.GetById(installationid));
     }
     catch (DalException exp)
     {
         log.Error("Installation kann nicht geladen werden.");
         throw new BLException("Installation konnte nicht geladen werden.", exp);
     }
 }
Beispiel #3
0
 public Installation GetInstallationById(int id)
 {
     return(_installationRepository.GetById(id));
 }