Example #1
0
        public IActionResult Create()
        {
            ViewData["Numero"]        = _ordemServicoAppService.GetLastNumber().Result + 1;
            ViewData["ConvenioId"]    = new SelectList(_convenioAppService.GetAll().Result, "Id", "Nome");
            ViewData["MedicoId"]      = new SelectList(_medicoAppService.GetAll().Result, "Id", "Nome");
            ViewData["PacienteId"]    = new SelectList(_pacienteAppService.GetAll().Result, "Id", "Nome");
            ViewData["PostoColetaId"] = new SelectList(_postoColetaAppService.GetAll().Result, "Id", "Descricao");

            return(View());
        }
Example #2
0
 public async Task <IActionResult> Convenio()
 {
     return(View(await _convenioAppService.GetAll()));
 }
 public async Task <IEnumerable <ConvenioViewModel> > Get()
 {
     return(await _convenioAppService.GetAll());
 }