public async Task <IActionResult> OnGetAsync() { ResponseDto responseDto = (ResponseDto)((ObjectResult)(await _clientController.List(0))).Value; _clientDtos = (List <ClientDto>)responseDto.detail; return(Page()); }
public IActionResult OnGet(int id) { if (id > 0) { ResponseDto responseDto = (ResponseDto)((ObjectResult)_clientController.List(id).Result).Value; foreach (ClientDto clientDto in ((List <ClientDto>)responseDto.detail)) { _client = clientDto; } } return(Page()); }
public async Task <IActionResult> OnGetAsync() { ResponseDto responseDto = (ResponseDto)((ObjectResult)(await _clientController.List(_selectedClientId))).Value; _clientDtos = (List <ClientDto>)responseDto.detail; _solicitationDto = new SolicitationDto(); _solicitationDto.AskDtos = new List <AskDto>(); _solicitationDto.AskDtos.Add(new AskDto(EnumQuestion.Packaged)); _solicitationDto.AskDtos.Add(new AskDto(EnumQuestion.Proccess)); _solicitationDto.AskDtos.Add(new AskDto(EnumQuestion.Volume)); _solicitationDto.AskDtos.Add(new AskDto(EnumQuestion.Temperature)); _solicitationDto.AskDtos.Add(new AskDto(EnumQuestion.Transport)); return(Page()); }