Example #1
0
        public ActionResult Restricted()
        {
            MarketPriceService service = new MarketPriceService();
            DashBoardRestrictedModel model = new DashBoardRestrictedModel()
            {

                MarketkPrices = service.GetPaged(p => p.PartnerID == SessionManager.UserInfo.PartnerId,
                new  IOrderByClause<MarketPrice>[] { new OrderByClause<MarketPrice, long>(p=>p.MarketPriceID, SortDirection.Decending) } , 1, 50)
            };

            return View(model);
        }
Example #2
0
        public ActionResult Index(int? id, int? Type,int? Page=1)
        {
            MarketPriceService service = new MarketPriceService();
            IndexPriceModel model = new IndexPriceModel()
            {
                PartnerId = id,
                Type = Type,
                Prices = service.GetPaged(p => id.HasValue? p.PartnerID==id: p.MarketPriceID>0 && (Type.HasValue? p.SymbolNameID== Type.Value: true),
                //Prices = service.GetPaged(p => p.MarketPriceID>0,
                new IOrderByClause<MarketPrice>[] { new OrderByClause<MarketPrice, DateTime>(p => p.UpdatedDate.Value, SortDirection.Decending) }, Page.HasValue?Page.Value:1, GMRSetting.PageSize)
            };

            return View(model);
        }