This commit is contained in:
Yunusov_Niyaz 2024-03-25 20:17:43 +04:00
parent 818f6791d9
commit 0d6af8477a

View File

@ -40,7 +40,7 @@ namespace CarRepairShopDatabaseImplement.Implements
public OrderViewModel? Insert(OrderBindingModel model) public OrderViewModel? Insert(OrderBindingModel model)
{ {
using var context = new RepairsShopDatabase(); using var context = new RepairsShopDatabase();
var newOrder = Order.Create(context, model); var newOrder = Order.Create(model);
if (newOrder == null) if (newOrder == null)
{ {
return null; return null;