fix : fix update category
parent
389bccbce1
commit
04bb1c25dd
|
@ -6,8 +6,8 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<AssemblyVersion>0.0.0.5</AssemblyVersion>
|
||||
<FileVersion>0.0.0.5</FileVersion>
|
||||
<AssemblyVersion>0.0.0.6</AssemblyVersion>
|
||||
<FileVersion>0.0.0.6</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -37,7 +37,7 @@ public class UpdateProductCategoryCommandHandler : IRequestHandler<ProductUpdate
|
|||
{
|
||||
newEnt.AddFile(file.Name, file.FileLocation, file.FileName, file.IsHeader, file.IsPrimary, file.FileType);
|
||||
}
|
||||
_repositoryWrapper.SetRepository<ProductCategory>().Add(newEnt);
|
||||
_repositoryWrapper.SetRepository<ProductCategory>().Update(newEnt);
|
||||
await _repositoryWrapper.SaveChangesAsync(cancellationToken);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue