예제 #1
0
        /// <summary>
        /// Добавление абитуриента в список участников мероприятия
        /// </summary>
        /// <param name="lmsEventId"></param>
        /// <returns></returns>
        public async Task <IActionResult> LmsEventParticipantsAddAbiturient(int lmsEventId)
        {
            var lmsEvent = await _lmsEventsRepository.GetLmsEventAsync(lmsEventId);

            var appUserLmsEvent = new AppUserLmsEvent
            {
                LmsEventId = lmsEvent.LmsEventId,
                LmsEvent   = lmsEvent,
                AppUserLmsEventUserRoleId = (int)AppUserLmsEventUserRolesEnum.Participant
            };

            ViewBag.AppUsersAbiturients = _selectListRepository.GetSelectListAppUsersAbiturientsConfirmed();

            return(View(appUserLmsEvent));
        }
예제 #2
0
        public async Task <IActionResult> LmsEventParticipantsDeleteParticipant(AppUserLmsEvent appUserLmsEvent)
        {
            await _lmsEventsRepository.RemoveAppUserLmsEventAsync(appUserLmsEvent);

            return(RedirectToAction(nameof(LmsEventParticipants), new { lmsEventId = appUserLmsEvent.LmsEventId }));
        }
예제 #3
0
        public async Task <IActionResult> LmsEventParticipantsAddAbiturient(AppUserLmsEvent appUserLmsEvent)
        {
            await _lmsEventsRepository.AddAppUserLmsEvent(appUserLmsEvent);

            return(RedirectToAction(nameof(LmsEventParticipants), new { lmsEventId = appUserLmsEvent.LmsEventId }));
        }