Exemplo n.º 1
0
 public IActionResult CreateLesson([FromBody] Lesson lesson)
 {
     try
     {
         return(Ok(schoolService.CreateLesson(lesson)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }