Пример #1
0
        //
        // GET: /APOSTA/

        public ViewResult Index()
        {
            UFC.Models.IEVENTORepository eventoRepository = new UFC.Models.EVENTORepository();
            UFC.EVENTO oEvento = eventoRepository.Find(int.Parse(Request.Params["Evento"]));
            TempData["EventoSelecionado"] = oEvento;
            return(View(apostaRepository.All));
        }
Пример #2
0
 public ViewResult SelecionaEvento()
 {
     UFC.Models.IEVENTORepository eventoRepository = new UFC.Models.EVENTORepository();
     ViewBag.PossibleEvento = eventoRepository.All.Where(x => x.LIBERADO == true).OrderBy(x => x.DATA);
     return(View(apostaRepository.All));
 }