This commit is contained in:
DyCTaTOR 2024-02-15 12:18:02 +04:00
parent 5df383fc54
commit 1a62aada4f
8 changed files with 8 additions and 31 deletions

View File

@ -21,7 +21,7 @@ namespace PlumbingRepairBusinessLogic.BusinessLogics
{
_logger.LogInformation("ReadList. ComponentName: {ComponentName}.Id:{Id} ",
model?.ComponentName, model?.Id);
var list = model == null ? _componentStorage.GetFullList() :
var list = model == null ? _componentStorage.GetFullList() :
_componentStorage.GetFilteredList(model);
if (list == null)
{

View File

@ -6,6 +6,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PlumbingRepairContracts\PlumbingRepairContracts.csproj" />
</ItemGroup>

View File

@ -12,7 +12,7 @@ namespace PlumbingRepairContracts.BindingModels
public int Id { get; set; }
public string WorkName { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> ProductComponents
public Dictionary<int, (IComponentModel, int)> WorkComponents
{ get; set; } = new();
}
}

View File

@ -1,7 +0,0 @@
namespace PlumbingRepairContracts
{
public class Class1
{
}
}

View File

@ -6,9 +6,9 @@ using System.Threading.Tasks;
namespace PlumbingRepairContracts.SearchModels
{
public class ProductSearchModel
public class WorkSearchModel
{
public int? Id { get; set; }
public string? ProductName { get; set; }
public string? WorkName { get; set; }
}
}

View File

@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlumbingRepairDataModels.Enums
{
public interface IOrderModel : IId
{
int WorkId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -15,6 +15,5 @@ namespace PlumbingRepairDataModels.Models
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -11,6 +11,5 @@ namespace PlumbingRepairDataModels.Models
string WorkName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> WorkComponents { get; }
}
}