Пример #1
0
        public IActionResult CreateApplication(Application appli, int id)
        {
            appli.StudentId = id;
            appli.Sticker   = 1;

            ViewBag.StuId = id;
            var selectedStudent = _repository.GetStudentById(id);

            ViewBag.StudentName = selectedStudent.FullName;

            _repository.AddApplication(appli);
            _repository.UpdateTotalApplication(id);

            return(View("Applications", _repository.GetApplications(id)));
        }