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> Convenio() { return(View(await _convenioAppService.GetAll())); }
public async Task <IEnumerable <ConvenioViewModel> > Get() { return(await _convenioAppService.GetAll()); }