Correct3
This commit is contained in:
parent
818f6791d9
commit
0d6af8477a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user