Esempio n. 1
0
        public async Task <IActionResult> ConfirmDelete(string id, bool check = false)
        {
            var lc = _LecturerRepository.GetById(id);

            if (check)
            {
                _DisciplineRepository.RemoveLecturerAsync(id, lc);
            }
            await _LecturerRepository.RemoveByIdAsync(id);

            return(RedirectToAction("Read"));
        }