Мелкое исправление.

This commit is contained in:
Programmist73 2023-02-06 16:58:28 +04:00
parent ca54e7c5bc
commit 97bb4fafac
3 changed files with 27 additions and 2 deletions

View File

@ -125,7 +125,7 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogic
}
//проверка на наличие названия компонента
if (string.IsNullOrEmpty(model.ComponentName){
if (string.IsNullOrEmpty(model.ComponentName)){
throw new ArgumentNullException("Нет названия компонента", nameof(model.ComponentName));
}
@ -135,7 +135,8 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogic
throw new ArgumentNullException("Цен компонента должна быть больше 0", nameof(model.Cost));
}
_logger.LogInformation("Component. ComponentName:{ComponentName}. Cost:{Cost}. Id:{Id}", model.ComponentName, model.Cost, model.Id);
_logger.LogInformation("Component. ComponentName:{ComponentName}. Cost:{Cost}. Id:{Id}",
model.ComponentName, model.Cost, model.Id);
//проверка на наличие такого же компонента в списке
var element = _componentStorage.GetElement(new ComponentSearchModel

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlacksmithWorkshopBusinessLogic.BusinessLogic
{
internal class OrderLogic
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlacksmithWorkshopBusinessLogic.BusinessLogic
{
internal class ProductLogic
{
}
}