fix DateTime mistake

This commit is contained in:
Zakharov_Rostislav 2024-05-13 15:58:08 +04:00
parent d617260cb3
commit fcafbcfdac

View File

@ -47,7 +47,7 @@ namespace CarShowroomBusinessLogic.BusinessLogic
public bool Create(SaleDto model)
{
CheckModel(model);
model.SaleTime = DateTime.Now;
model.SaleTime = DateTime.UtcNow;
if (_saleStorage.Insert(model) == null)
{
return false;