diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AsyncCrudAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AsyncCrudAppService.cs index 6e3b476b5c..bf769dc78b 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AsyncCrudAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AsyncCrudAppService.cs @@ -106,6 +106,7 @@ namespace Volo.Abp.Application.Services //TODO: Check if input has id different than given id and normalize if it's default value, throw ex otherwise MapToEntity(input, entity); + await Repository.UpdateAsync(entity); await CurrentUnitOfWork.SaveChangesAsync(); return MapToEntityDto(entity); diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs index 1fd6f869ff..60017e918f 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs @@ -100,6 +100,7 @@ namespace Volo.Abp.Application.Services var entity = GetEntityById(id); MapToEntity(input, entity); + Repository.Update(entity); CurrentUnitOfWork.SaveChanges(); return MapToEntityDto(entity);