public HttpResponseMessage CreateLesson(string discipline, string group, string teacher, int day, double audithory) { LessonViewModel lesoon = new LessonViewModel(); lesoon.group = group; lesoon.discipline = discipline; lesoon.day = day; lesoon.auditory = audithory; lesoon.teacher = teacher; if (!ValitadionLesson(lesoon)) { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } editor.addNewLesson(ModelMap.LessonViewToDomain(lesoon)); return(Request.CreateResponse(HttpStatusCode.Created)); }