Beispiel #1
0
 public HomeViewModel Post(HomeFilesModel model)
 {
     return new HomeViewModel{
         Text = "Hello, world.",
         CurrentUrl = model.Url,
         HomeFile1Present = model.HomeFile1 != null,
         NumberOfFiles = model.Files.Count
     };
 }
Beispiel #2
0
 public HomeViewModel Post(HomeFilesModel model)
 {
     return(new HomeViewModel
     {
         Text = "Hello, world.",
         CurrentUrl = model.Url,
         NumberOfFiles = model.Files == null ? 0 : model.Files.Count
     });
 }