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

            ViewBag.sporfotogoster = modelfoto.SporcuFotos.OrderByDescending(i => i.Id);
        }
Exemplo n.º 2
0
        // GET: SporcuFoto
        public ActionResult Index()
        {
            var model = new SporcuFotoListViewModel
            {
                SporcuFotos = _sporcuFotoService.GetAll().OrderByDescending(i => i.Id).ToList()
            };

            return(View(model));
        }
        public ActionResult FotoGoster(int fotoId)
        {
            var model = new SporcuFotoListViewModel
            {
                SporcuFotoGet = _sporcuFotoService.GetById(fotoId)
            };

            return(View(model));
        }