Beispiel #1
0
        // GET: SporcuFoto
        public ActionResult Index()
        {
            var model = new SporcuFotoListViewModel
            {
                SporcuFotos = _sporcuFotoService.GetAll().OrderByDescending(i => i.Id).ToList()
            };

            return(View(model));
        }
        void fotogetir()
        {
            var modelfoto = new SporcuFotoListViewModel
            {
                SporcuFotos = _sporcuFotoService.GetAll()
            };

            ViewBag.sporfotogoster = modelfoto.SporcuFotos.OrderByDescending(i => i.Id);
        }