Beispiel #1
0
        private void GetOne()
        {
            Course course = new Course();

            course.CourseId = int.Parse(Helper.GetParameterFromRequest("courseId"));
            CourseRepo Repo = new CourseRepo(course);

            if (Repo.Query())
            {
                Helper.Response(course.Serialize());
            }
            else
            {
                Helper.ResponseError(Repo.ErrorMessage);
            }
        }