public static List <StationType> GetAll() { try { return(StationTypeRepository.GetAll()); } catch (Exception ex) { throw ex; } }
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); }