Eliseev E.E. LabWork01 #1

Closed
ElEgEv wants to merge 26 commits from LabWork01 into main
3 changed files with 27 additions and 2 deletions
Showing only changes of commit 97bb4fafac - Show all commits

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
{
}
}