Ejemplo n.º 1
0
        public async Task <ActionResult> PostRate(CourseRateInsertDTO rate)
        {
            CourseRate newRate = new CourseRate()
            {
                CourseId  = rate.CourseId,
                StudentId = rate.StudentId,
                Rate      = rate.Rate,
                Comment   = rate.Comment
            };

            var rateId = _courseRepository.AddCourseRate(newRate);

            return(Ok());
        }