Ejemplo n.º 1
0
 /// <summary>
 /// Generates a local url for the given post field.
 /// </summary>
 /// <param name="app">The application service</param>
 /// <param name="field">The field</param>
 /// <returns>The url</returns>
 public static string Url(this IApplicationService app, PostField field)
 {
     if (field != null)
     {
         return(Url(app, field.Post));
     }
     return("");
 }
Ejemplo n.º 2
0
 public override string GetTitle()
 {
     if (!PostField.op_Inequality(this.get_Body(), null) || this.get_Body().get_Post() == null)
     {
         return("No post selected");
     }
     return(this.get_Body().get_Post().get_Title());
 }
 public object Deserialize(string str)
 {
     stackVariable0 = new PostField();
     if (!String.IsNullOrEmpty(str))
     {
         stackVariable5 = new Guid?(new Guid(str));
     }
     else
     {
         V_0            = null;
         stackVariable5 = V_0;
     }
     stackVariable0.set_Id(stackVariable5);
     return(stackVariable0);
 }
Ejemplo n.º 4
0
 public Teaser()
 {
     PageLink = new PageField();
     PostLink = new PostField();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Generates an absolute url for the given post field.
 /// </summary>
 /// <param name="app">The application service</param>
 /// <param name="field">The field</param>
 /// <returns>The url</returns>
 public static string AbsoluteUrl(this IApplicationService app, PostField field)
 {
     return($"{ AbsoluteUrlStart(app) }{ Url(app, field) }");
 }
Ejemplo n.º 6
0
 public Footer()
 {
     PageLink = new PageField();
     PostLink = new PostField();
 }
Ejemplo n.º 7
0
 public Menu()
 {
     PageLink = new PageField();
     PostLink = new PostField();
 }