Пример #1
0
 public OkResult Update(int id, [FromBody] UpdateTutorialModel res)
 {
     _tutorialService.Update(id, res.Title, res.ExerciceId, res.Sources.Select(s => new TutorialSource()
     {
         Type    = s.Type,
         Content = s.Content
     }));
     return(Ok());
 }