public ActionResult Create()
        {
            ServiceStudentViewModel studentViewModel = new ServiceStudentViewModel();

            studentViewModel.studentBranches = context.studentBranches.ToList();
            return(View(studentViewModel));
        }
 public ActionResult Create(ServiceStudentViewModel studentObj)
 {
     if (ModelState.IsValid)
     {
         context.student.Add(studentObj.students);
         context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(studentObj));
 }