Merge branch 'Task_1_Models' into Task_2_BusinessLogic

This commit is contained in:
Ivan Gutorov 2025-02-17 16:18:57 +04:00
commit 49eb971b5c

View File

@ -45,6 +45,6 @@ public class InstallationDataModel(string id, string employeeId,
throw new ValidationException("Field Sum is less than or equal to 0");
if ((Components?.Count ?? 0) == 0)
throw new ValidationException("The sale must include components");
throw new ValidationException("The installation must include components");
}
}