Example #1
0
        // GET: Student/Delete
        public ActionResult Delete(int id)
        {
            var studentGroup   = studentFacade.GetStudentById(id).StudentGroup;
            var studentGroupId = studentGroup.Id;

            studentFacade.DeleteStudent(id);
            return(View("View", CreateStudentViewModel(studentGroupId)));
        }