public IActionResult CreateNilai(string nim, string periode, string semester)
        {
            var data = _krs.GetKrsforCreate(nim, periode, semester);
            var maha = mhs.GetByNim(nim);

            ViewBag.namamhs = maha.Nama_mhs;
            var lstnilai = getlistnilai();

            ViewBag.nilai = lstnilai;
            return(View(data));
        }
        public IActionResult CreateNilai(string id)
        {
            var lstnilai = getlistnilai();

            ViewBag.nilai = lstnilai;
            var lstsemester = getlistsemester();

            ViewBag.semester = lstsemester;
            var lstyear = getlistyear();

            ViewBag.year = lstyear;
            var data = _mhs.GetByNim(id);

            ViewBag.namamhs = data.Nama_mhs;
            ViewBag.nimmhs  = data.Nim;
            return(View());
        }