Exemple #1
0
        public async Task <IActionResult> FinishGrouping(string email, int QuarterId)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var erollments = await lecturerRepository.FinishGroupingAsync(email, QuarterId);

            await unitOfWork.Complete();

            var enrollmentResource = mapper.Map <IEnumerable <Enrollment>, IEnumerable <EnrollmentResource> >(erollments);

            return(Ok(enrollmentResource));
        }