Esempio n. 1
0
 public IEnumerable <ViewTutorialsModel> Get()
 {
     return(_tutorialService.GetAll().Select(t => new ViewTutorialsModel
     {
         Id = t.Id,
         Title = t.Title,
         Sources = t.Sources.Select(s => new TutorialSourceModel
         {
             Content = s.Content,
             Type = s.Type
         })
     }));
 }