Ejemplo n.º 1
0
 internal void SaveNewMarketIndex(AdminMarketIndexModel adminMarketIndexModel)
 {
     MarketIndexService.CreateMarketIndex(new MarketIndexModel()
     {
         name = adminMarketIndexModel.name, market_id = adminMarketIndexModel.market_id
     });
 }
Ejemplo n.º 2
0
 internal void UpdateMarketIndex(AdminMarketIndexModel adminMarketIndexModel)
 {
     MarketIndexService.UpdateMarketIndex(new MarketIndexModel()
     {
         Id = adminMarketIndexModel.Id, market_id = adminMarketIndexModel.market_id, name = adminMarketIndexModel.name
     });
 }
Ejemplo n.º 3
0
 internal List <AdminMarketIndexModel> GetMarketIndexes()
 {
     if (this.marketIndexes == null)
     {
         this.marketIndexes = MarketIndexService.GetMarketIndexes().Select(s => new AdminMarketIndexModel()
         {
             Id = s.Id, name = s.name, market_id = s.market_id, market_name = s.market_name
         }).ToList();
     }
     return(this.marketIndexes);
 }
Ejemplo n.º 4
0
 internal void DeleteMarketIndex(AdminMarketIndexModel adminMarketIndexModel)
 {
     MarketIndexService.DeleteMarketIndex(adminMarketIndexModel.Id);
 }