示例#1
0
        public async Task OnPostSaveUpdatedImageAsync(Guid imageId, Guid?recordId)
        {
            RecordId = recordId;
            await _imagesEditService.ApplyChanges(imageId);

            await UpdateModel(imageId);
        }
示例#2
0
        public async Task <IActionResult> ApplyChanges(Guid imageId)
        {
            try
            {
                await _imagesEditService.ApplyChanges(imageId);

                return(Ok());
            }
            catch (ArgumentException exc)
            {
                return(BadRequest(exc.Message));
            }
        }