Esempio n. 1
0
        public ActionResult Cadastrar()
        {
            var value = Request.Cookies[FormsAuthentication.FormsCookieName].Value;

            ViewBag.SelectListDisciplina  = _serviceDisciplina.ObterTodas(value);
            ViewBag.SelectListLaboratorio = _serviceLaboratorio.ObterTodas(value);


            return(View());
        }
Esempio n. 2
0
        // GET: Agendamentos/Disciplina
        public ActionResult Index()
        {
            var value = Utils.ObterTokenGwtCookie(Request);
            var lista = _serviceLaboratorio.ObterTodas(value);

            if (lista == null)
            {
                lista = new List <LaboratorioDto>();
            }
            return(View(lista));
        }