Compare commits
No commits in common. "6b9da32038fc97ddecd5ff7bb169a490adfe4f05" and "acee749f2410a47efac9b13c891cdbed119f6752" have entirely different histories.
6b9da32038
...
acee749f24
@ -88,17 +88,6 @@ namespace ComputerShopBusinessLogic.BusinessLogics
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool BindShipment(ProductBindingModel Model)
|
|
||||||
{
|
|
||||||
if (Model.ShipmentId == null)
|
|
||||||
{
|
|
||||||
_logger.LogInformation("Trying to bind null shipment to product with Id: {Id}", Model.Id);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Update(Model);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CheckModel(ProductBindingModel Model, bool WithParams = true)
|
private void CheckModel(ProductBindingModel Model, bool WithParams = true)
|
||||||
{
|
{
|
||||||
if (Model == null)
|
if (Model == null)
|
||||||
|
@ -15,7 +15,5 @@ namespace ComputerShopContracts.BusinessLogicContracts
|
|||||||
bool Update(ProductBindingModel Model);
|
bool Update(ProductBindingModel Model);
|
||||||
|
|
||||||
bool Delete(ProductBindingModel Model);
|
bool Delete(ProductBindingModel Model);
|
||||||
|
|
||||||
bool BindShipment(ProductBindingModel Model);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
13
ComputerShopRestApi/WeatherForecast.cs
Normal file
13
ComputerShopRestApi/WeatherForecast.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
namespace ComputerShopRestApi
|
||||||
|
{
|
||||||
|
public class WeatherForecast
|
||||||
|
{
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
|
||||||
|
public int TemperatureC { get; set; }
|
||||||
|
|
||||||
|
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||||
|
|
||||||
|
public string? Summary { get; set; }
|
||||||
|
}
|
||||||
|
}
|
BIN
ER-diagramm.jpg
BIN
ER-diagramm.jpg
Binary file not shown.
Before Width: | Height: | Size: 172 KiB |
@ -3,6 +3,3 @@
|
|||||||
Роли:
|
Роли:
|
||||||
- Исполнитель (9.3) - Чернышев Г.Я.
|
- Исполнитель (9.3) - Чернышев Г.Я.
|
||||||
- Поручитель (9.4) - Шабунов О.А.
|
- Поручитель (9.4) - Шабунов О.А.
|
||||||
|
|
||||||
## ER-диаграмма
|
|
||||||
![ER-diagramm](https://git.is.ulstu.ru/ujijrujijr/PIbd-22_Chernyshev_Shabunov_CourseWork/src/branch/main/ER-diagramm.jpg?raw=true)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user