public async Task <IActionResult> OnPost()
        {
            await _companyAppService.UpdateAsync(
                ObjectMapper.Map <UpdateCompanyViewModel, UpdateCompanyDto>(CompanyModel));

            return(RedirectToPage("Index"));
        }
예제 #2
0
        public async Task <IActionResult> Put(Guid id, [FromBody] CompanyDto CompanyDto)
        {
            CompanyDto = await _appService.UpdateAsync(id, CompanyDto);

            return(CreateResponseOnPut(CompanyDto, _name));
        }
예제 #3
0
        public async Task <IActionResult> OnPostAsync()
        {
            await _companyAppService.UpdateAsync(Id, Company);

            return(NoContent());
        }