Пример #1
0
        // GET: Product/Shortly/5
        public ActionResult Shortly(/*Guid id*/)
        {
            //ProductVM  model = productRep.Get(id);
            ProductVM model = productRep.GetAll().First();
            PhotoVM   prima = photoRep.FindBy(p => p.PrimePhoto == true || p.ProductId == model.ProductId).First();

            ViewBag.prima = prima.PhotoURL;

            return(View(model));
        }