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()); }
public async Task <IActionResult> Posto() { return(View(await _postoColetaAppService.GetAll())); }