public ActionResult Post(LessonQ lesson) { try { var id = service.Save(lesson); return(CreatedAtAction(nameof(Get), new { Id = id }, new CourseQ())); } catch (Exception e) { return(Content(e.Message)); } }