public Utilisateur CheckExistUser(string login, string pwd)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var res = db.Utilisateurs.Where(r => (r.User.Equals(login) && r.ModePasse.Equals(pwd) && r.Deleted == false)).FirstOrDefault();
             return(res);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 public Client GetModificatorByClient(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var res = db.Clients.Where(r => r.MODIFICATEURId.Equals(id)).FirstOrDefault();
             return(res);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
 public Collaborateur GetUserByCollaborator(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var res = db.Collaborateurs.Where(r => r.UtilisateurId.Equals(id)).FirstOrDefault();
             return(res);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public Tiers GetCreatorByTiers(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var res = db.Tiers.Where(r => r.CREATEURId.Equals(id)).FirstOrDefault();
             return(res);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #5
0
 public Collaborateur GetUserByCollaborator(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var collaborateur = _context.Collaborateurs.FirstOrDefault(r => r.UtilisateurId.Equals(id));
             return(collaborateur);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #6
0
 public DetailDimension GetByDetailDimension(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var Tiers = _context.DetailDimensions.FirstOrDefault(r => r.DimensionId.Equals(id));
             return(Tiers);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #7
0
 public Tiers GetByTiers(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var Tiers = _context.Tiers.FirstOrDefault(r => r.FamilleTierId.Equals(id));
             return(Tiers);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #8
0
 public Famille  CheckTaxeExistFamille(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var famille = _context.Famille.FirstOrDefault(r => r.TaxeVenteId.Equals(id) || r.TaxeAchatId.Equals(id));
             return(famille);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #9
0
 public Client GetByClient(int id)
 {
     try
     {
         using (var db = new XSoftContext())
         {
             var client = _context.Clients.FirstOrDefault(r => r.CategorieTarifId.Equals(id));
             return(client);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #10
0
 public DeviseRepository(XSoftContext context)
 {
     _context = context;
 }
 public EProtectionRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #12
0
 public CollaborateurRepository(XSoftContext context)
 {
     _context = context;
 }
 public ParametresRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #14
0
 public TaxeRepository(XSoftContext context)
 {
     _context = context;
 }
 public ClientRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #16
0
 public FournisseurRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #17
0
 public ClassificationArticleRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #18
0
 public UtilisateurRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #19
0
 public ContactRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #20
0
 public CategorieTarifRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #21
0
 public ArticleGeneriqueRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #22
0
 public DimensionRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #23
0
 public ModalitePaiementRepository(XSoftContext context)
 {
     _context = context;
 }
Beispiel #24
0
 public FamilleTierRepository(XSoftContext context)
 {
     _context = context;
 }
 public UniteRepository(XSoftContext context)
 {
     _context = context;
 }