A lot of stuff related to parsing; index page input validation

This commit is contained in:
Simon Martens
2023-09-17 15:29:51 +02:00
parent d86d508786
commit b15ce8793c
23 changed files with 294 additions and 60 deletions

View File

@@ -31,8 +31,9 @@ namespace HaDocument.Models {
Reference = reference;
}
public static Editreason? FromXElement(XElement element) {
throw new NotImplementedException("We need two Elements for editreason");
public static Editreason? FromXElement(XElement edit, XElement editreason) {
if (edit == null || editreason == null || !edit.HasAttributes || !editreason.HasAttributes) return null;
return null;
}
}
}