Exemplo n.º 1
0
 /// <summary>
 /// Sets Container Model values based on the given FormPost
 /// </summary>
 /// <param name="formPost"></param>
 public void updateContainerModel(FormPost formPost)
 {
     formPost.resultsToXml();
     this.subsections      = formPost.parseString("subsections", "0");
     this.label            = formPost.parseString("label");
     this.id               = formPost.parseInt("id", -1);
     this.attributesId     = formPost.parseInt("attributesId");
     this.dataId           = formPost.parseInt("dataId");
     this.metaId           = formPost.parseInt("metaId");
     this.shared           = formPost.parseInt("shared");
     this.isPublic         = formPost.parseInt("isPublic");
     this.dateLastModified = DateTime.UtcNow.ToLocalTime();
 }