public async Task <IActionResult> OnPost() { await _companyAppService.UpdateAsync( ObjectMapper.Map <UpdateCompanyViewModel, UpdateCompanyDto>(CompanyModel)); return(RedirectToPage("Index")); }
public async Task <IActionResult> Put(Guid id, [FromBody] CompanyDto CompanyDto) { CompanyDto = await _appService.UpdateAsync(id, CompanyDto); return(CreateResponseOnPut(CompanyDto, _name)); }
public async Task <IActionResult> OnPostAsync() { await _companyAppService.UpdateAsync(Id, Company); return(NoContent()); }