diff --git a/Persistence.Client/Clients/IChangeLogClient.cs b/Persistence.Client/Clients/IChangeLogClient.cs index 4f1cc60..dcbc9e2 100644 --- a/Persistence.Client/Clients/IChangeLogClient.cs +++ b/Persistence.Client/Clients/IChangeLogClient.cs @@ -17,7 +17,7 @@ public interface IChangeLogClient /// /// /// - [Post($"{BaseRoute}/replace")] + [Post($"{BaseRoute}/replace/{{idDiscriminator}}")] Task> ClearAndAddRange(Guid idDiscriminator, IEnumerable dtos); /// @@ -28,10 +28,10 @@ public interface IChangeLogClient /// параметры запроса фильтрации /// параметры запроса пагинации /// - [Get($"{BaseRoute}/moment")] + [Get($"{BaseRoute}/moment/{{idDiscriminator}}")] Task>> GetByDate( - Guid idDiscriminator, - DateTimeOffset moment, + Guid idDiscriminator, + DateTimeOffset moment, [Query] SectionPartRequest filterRequest, [Query] PaginationRequest paginationRequest); @@ -42,7 +42,7 @@ public interface IChangeLogClient /// /// /// - [Get($"{BaseRoute}/history")] + [Get($"{BaseRoute}/history/{{idDiscriminator}}")] Task>> GetChangeLogForInterval(Guid idDiscriminator, DateTimeOffset dateBegin, DateTimeOffset dateEnd); /// @@ -51,7 +51,7 @@ public interface IChangeLogClient /// /// /// - [Post($"{BaseRoute}")] + [Post($"{BaseRoute}/{{idDiscriminator}}")] Task> Add(Guid idDiscriminator, DataWithWellDepthAndSectionDto dto); /// @@ -60,7 +60,7 @@ public interface IChangeLogClient /// /// /// - [Post($"{BaseRoute}/range")] + [Post($"{BaseRoute}/range/{{idDiscriminator}}")] Task> AddRange(Guid idDiscriminator, IEnumerable dtos); /// @@ -69,7 +69,7 @@ public interface IChangeLogClient /// /// /// - [Put($"{BaseRoute}")] + [Put($"{BaseRoute}/{{idDiscriminator}}")] Task> Update(Guid idDiscriminator, DataWithWellDepthAndSectionDto dto); /// @@ -78,7 +78,7 @@ public interface IChangeLogClient /// /// /// - [Put($"{BaseRoute}/range")] + [Put($"{BaseRoute}/range/{{idDiscriminator}}")] Task> UpdateRange(Guid idDiscriminator, IEnumerable dtos); /// diff --git a/Persistence.Repository/Repositories/ChangeLogRepository.cs b/Persistence.Repository/Repositories/ChangeLogRepository.cs index 7f6d573..78c2eba 100644 --- a/Persistence.Repository/Repositories/ChangeLogRepository.cs +++ b/Persistence.Repository/Repositories/ChangeLogRepository.cs @@ -35,7 +35,7 @@ public class ChangeLogRepository : IChangeLogRepository { var query = db.Set() .Where(s => ids.Contains(s.Id)) - .Where(s => s.Obsolete != null); + .Where(s => s.Obsolete == null); if (query.Count() != ids.Count()) {