Esempio n. 1
0
        public void OnGet()
        {
            SneakerModel sneakersModel = new SneakerModel();

            Products   = sneakersModel.GetProducts();
            TotalItems = SessionHelper.GetObjectFromJson <List <Product> >(HttpContext.Session, "Products").Count();
            SessionHelper.SetObjectAsJson(HttpContext.Session, "SneakerProd", Products);
        }
 public static Proto.SneakerModel FromNative(this SneakerModel native)
 {
     return(new Proto.SneakerModel
     {
         UniqueId = native.UniqueID,
         Name = native.Name,
         BaseModel = native.BaseModel,
         Brand = native.Brand,
         Description = native.Description,
         Hero = native.Description,
     });
 }