public IHttpActionResult Post(ExamDTO examDTO) { Exam exam = new Exam() { CategoryID = examDTO.CategoryID, Date = examDTO.Date, Duration = examDTO.Duration, IsActive = examDTO.IsActive, LessonID = examDTO.LessonID, Name = examDTO.Name }; _examService.Add(exam); return(Ok()); }