public IEnumerable <Responsable> Get()
 {
     using (var context = new gestion_livraisonContext())
     {
         return(context.Responsables.ToList());
         //if i want to get on city
         //return context.Ville.Where(Ville => Ville.Id==1).ToList();
     }
 }
Beispiel #2
0
 public LivreursController(gestion_livraisonContext context)
 {
     _context = context;
 }
 public ClientParsController(gestion_livraisonContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public VillesController(gestion_livraisonContext context)
 {
     _context = context;
 }
 public CommandesController(gestion_livraisonContext context)
 {
     _context = context;
 }