public async Task OnPostSaveUpdatedImageAsync(Guid imageId, Guid?recordId) { RecordId = recordId; await _imagesEditService.ApplyChanges(imageId); await UpdateModel(imageId); }
public async Task <IActionResult> ApplyChanges(Guid imageId) { try { await _imagesEditService.ApplyChanges(imageId); return(Ok()); } catch (ArgumentException exc) { return(BadRequest(exc.Message)); } }