private bool write_base(_ge_base b, XmlNode parent) { try { AddNode("createdId", b.createdId.ToString(), parent); AddNode("createdDT", b.createdDT.ToString(), parent); AddNode("editedId", b.editedId.ToString(), parent); AddNode("editedDT", b.editedDT.ToString(), parent); AddNode("operations", b.operations, parent); return(true); } catch { return(false); } }
public bool UpdateCreated(_ge_base geb) { string userId = ""; try { if (_user == null) { userId = GetUserIdAsync().Result; } geb.createdId = _user.Id; geb.createdDT = DateTime.UtcNow; return(true); } catch (Exception e) { return(false); } }
public Boolean IsOperationAllowed(string operation, _ge_base ge_base) { return(ge_base.operations.Contains(operation)); }