Exemple #1
0
 public Page(ALMS.App.Models.Entities.Lecture lecture, string path, string branch)
 {
     Lecture = lecture;
     Path    = path;
     Branch  = branch;
     if (string.IsNullOrWhiteSpace(Path))
     {
         // TODO
         Path = "index.md";
     }
     else
     {
         Path = Regex.Replace(Path, "/$", "");
     }
 }