public async Task OnGetAsync(Guid cipaId, string codigo, string nome) { CipaId = cipaId; EstabelecimentosGetManyResult = await estabelecimentosClient.GetAsync(new EstabelecimentosGetMany() { Codigo = codigo, Nome = nome }); }
public async Task OnGetAsync(Guid id) { var estabelecimentosGetResult = await estabelecimentosClient.GetAsync(id); EstabelecimentosPut = new EstabelecimentosPut() { Codigo = estabelecimentosGetResult.Codigo, Nome = estabelecimentosGetResult.Nome }; EstabelecimentoId = id; }
public async Task <IActionResult> OnPostEstabelecimentosPartialAsync() { var estabelecimentosGetManyResult = await estabelecimentosClient.GetAsync(EstabelecimentosGetMany); return(new PartialViewResult() { ViewName = "_EstabelecimentosPartial", ViewData = new ViewDataDictionary <EstabelecimentosGetManyResult>(ViewData, estabelecimentosGetManyResult) }); //construção abaixo não funciona, simplesmente não consegue interpretar o tipo da variável 'estabelecimentosGetAllResult' e fica considerando que o Model da Partial é 'IndexModel'. //return Partial("_EstabelecimentosPartial", estabelecimentosGetAllResult); }
public async Task OnGetAsync(Guid id) { var estabelecimentosGetResult = await estabelecimentosClient.GetAsync(id); EstabelecimentosPut = new EstabelecimentosPut() { Codigo = estabelecimentosGetResult.Codigo, Nome = estabelecimentosGetResult.Nome, CipaId = estabelecimentosGetResult.CipaId }; EstabelecimentoId = id; CipasGetAllResult = await cipasClient.GetAllAsync(); }
public async Task OnGetAsync(Guid id) { EstabelecimentosGetResult = await estabelecimentosClient.GetAsync(id); EstabelecimentosCipasGetResult = await estabelecimentosClient.CipasGetAsync(id); }