/// <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)); }
public async Task <IActionResult> LmsEventParticipantsDeleteParticipant(AppUserLmsEvent appUserLmsEvent) { await _lmsEventsRepository.RemoveAppUserLmsEventAsync(appUserLmsEvent); return(RedirectToAction(nameof(LmsEventParticipants), new { lmsEventId = appUserLmsEvent.LmsEventId })); }
public async Task <IActionResult> LmsEventParticipantsAddAbiturient(AppUserLmsEvent appUserLmsEvent) { await _lmsEventsRepository.AddAppUserLmsEvent(appUserLmsEvent); return(RedirectToAction(nameof(LmsEventParticipants), new { lmsEventId = appUserLmsEvent.LmsEventId })); }