Exemple #1
0
 public NewsHub(NewsStore newsStore)
 {
     _newsStore = newsStore;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="newsStore">store for news (injected by DI)</param>
 public NewsController(NewsStore newsStore) => _newsStore = newsStore;
Exemple #3
0
 public NewsStore InsertNewsStore(NewsStore entity)
 {
     return(_iNewsStoreRepository.InsertNewsStore(entity));
 }
Exemple #4
0
 public NewsStore UpdateNewsStore(NewsStore entity)
 {
     return(_iNewsStoreRepository.UpdateNewsStore(entity));
 }
 public virtual NewsStore DeleteNewsStore(NewsStore entity)
 {
     this.DeleteNewsStore(entity.NewsId);
     return(entity);
 }
 internal void InitializeGame(string[] names)
 {
     GameStore.InitPlayers(names);
     NewsStore.ResetNews();
     StockStore.LoadPurchaseRecords();
 }