Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
fixing build error (#115)
Browse files Browse the repository at this point in the history
merging
  • Loading branch information
pietersap authored and MassimoC committed Mar 22, 2019
1 parent 353e3da commit 5f13698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions maturity-level-two/src/Services/CoditoRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public async Task ApplyPatchAsync<TEntity>(TEntity entityUpdated) where TEntity

foreach (var property in properties)
{
if(!_coditoContext.Entry(entityToUpdate).Property(property).Metadata.IsKey())
if(!_coditoContext.Entry(entityUpdated).Property(property).Metadata.IsKey())
{
_coditoContext.Entry(entityToUpdate).Property(property).IsModified = true;
_coditoContext.Entry(entityUpdated).Property(property).IsModified = true;
}
}

Expand Down
5 changes: 1 addition & 4 deletions maturity-level-two/src/Services/ICoditoRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ public interface ICoditoRepository
Task<Customization> GetCustomizationAsync(int id);

Task CreateCustomizationAsync(Customization customization);
//Task ApplyPatchAsync<TEntity, TDto>(TEntity entityToUpdate, TDto dto) where TEntity : class;
Task ApplyPatchAsync<TEntity>(TEntity entityUpdated) where TEntity : class;


Task ApplyPatchAsync<TEntity, TDto>(TEntity entityToUpdate, TDto dto) where TEntity : class;
Task ApplyPatchAsync<TEntity>(TEntity entityUpdated) where TEntity : class;

Task<SalesRequestResult> ApplyCustomizationSaleAsync(int id);

Expand Down

0 comments on commit 5f13698

Please sign in to comment.