示例#1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var classRoom = await _classRoomManager.GetClassRoomAsync(id);

            if (classRoom == null)
            {
                return(NotFound());
            }

            await _classRoomManager.DeleteAsync(id);

            return(RedirectToAction(nameof(Index)));
        }