Beispiel #1
0
        public async Task <IActionResult> Create(Discipline disc, string[] Ids)
        {
            disc.Lectors = _LecturerRepository.GetLectorsByArray(Ids);
            await _DisciplineRepository.AddAsync(disc);

            ViewBag.Lectures = null;
            return(RedirectToAction("Read"));
        }