Ejemplo n.º 1
0
 public static List <StationType> GetAll()
 {
     try
     {
         return(StationTypeRepository.GetAll());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public UnitOfWork(CorpCommDbContext db)
 {
     _db          = db;
     Brand        = new BrandRepository(_db);
     StationType  = new StationTypeRepository(_db);
     Unit         = new UnitRepository(_db);
     Department   = new DepartmentRepository(_db);
     Status       = new StatusRepository(_db);
     Size         = new SizeRepository(_db);
     Email        = new EmailRepository(_db);
     Location     = new LocationRepository(_db);
     Event        = new EventRepository(_db);
     Station      = new StationRepository(_db);
     Collateral   = new CollateralRepository(_db);
     OrderDetails = new OrderDetailsRepository(_db);
     OrderHeader  = new OrderHeaderRepository(_db);
     ShoppingCart = new ShoppingCartRepository(_db);
     History      = new HistoryRepository(_db);
     SP_Call      = new SP_Call(_db);
 }