public async Task <IActionResult> Get(Guid id, [FromQuery] RequestDto requestDto) { var request = new DefaultRequestDto(id, requestDto); var response = await _appService.GetAsync(request); return(CreateResponseOnGet(response, _name)); }
public async Task <ActionResult> Edit(int companyId) { CompanyDto company = await _companyAppService.GetAsync(companyId); return(PartialView("_CreateOrUpdate", company)); }
public async Task OnGet(Guid id) { var company = await _companyAppService.GetAsync(id); CompanyModel = ObjectMapper.Map <CompanyDto, UpdateCompanyViewModel>(company); }