убрала у коммента дату в search model

This commit is contained in:
dex_moth 2024-05-27 14:54:24 +04:00
parent 8ad556c01f
commit 6838c3f610
2 changed files with 2 additions and 8 deletions

View File

@ -20,7 +20,7 @@ namespace ComputerHardwareStoreBusinessLogic.BusinessLogic
public List<CommentViewModel>? ReadList(CommentSearchModel? model) public List<CommentViewModel>? ReadList(CommentSearchModel? model)
{ {
_logger.LogInformation("ReadList Comment. Date:{Date}. Id:{Id}", model?.Date, model?.Id); _logger.LogInformation("ReadList Comment. Id:{Id}", model?.Id);
var list = model == null ? _commentStorage.GetFullList() : var list = model == null ? _commentStorage.GetFullList() :
_commentStorage.GetFilteredList(model); _commentStorage.GetFilteredList(model);
if (list == null) if (list == null)
@ -38,7 +38,7 @@ namespace ComputerHardwareStoreBusinessLogic.BusinessLogic
{ {
throw new ArgumentNullException(nameof(model)); throw new ArgumentNullException(nameof(model));
} }
_logger.LogInformation("ReadElement Comment. Date:{Date}. Id:{ Id}", model.Date, model.Id); _logger.LogInformation("ReadElement Comment. Id:{ Id}", model.Id);
var element = _commentStorage.GetElement(model); var element = _commentStorage.GetElement(model);
if (element == null) if (element == null)
{ {

View File

@ -6,12 +6,6 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Compile Remove="BusinessLogic\**" />
<EmbeddedResource Remove="BusinessLogic\**" />
<None Remove="BusinessLogic\**" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup> </ItemGroup>