SHA256
GuestLog - GuestDocument fixes & improvements:
- Use GuestDocument Details page to see details. - Added GuestDocument stays in details page. Other minor changes: - Updated validators to use ValueValidator base class. - Changed Snackbar settings to show them better. - Added Empty Debug page to test things. This page wont be updated in git, all test must be local-only.
This commit is contained in:
@@ -25,4 +25,18 @@ public class GuestDocIdDTO
|
||||
DocumentNum = parts[1]
|
||||
};
|
||||
}
|
||||
|
||||
public static GuestDocIdDTO? BuildFromDto(GuestDocumentDTO? dto)
|
||||
{
|
||||
if (dto is null || dto.DocumentType is null || dto.DocumentNum is null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return new()
|
||||
{
|
||||
DocumentType = dto.DocumentType,
|
||||
DocumentNum = dto.DocumentNum
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user