Skip to content

Instantly share code, notes, and snippets.

public bool IsWorkorderValidAfterSave(WorkorderModel workorder)
{
var allStepsAreSaved = workorder.SyncStepsCompleted == WorkorderSyncStepsCompleted.AllStepsAreCompleted;
var wasMappingErrors = !workorder.WorkOrderInvalid;
var noOtherErrorsFound = workorder.Broken != true;
return allStepsAreSaved && !wasMappingErrors && noOtherErrorsFound;
}