// GET: StudentMaster/Create
 public ActionResult Create(int id = 0)
 {
     TempData["Id"]        = id;
     ViewBag.ClassMaster   = _classMasterRepository.GetEntityList();
     ViewBag.SectionMaster = _sectionMasterRepository.GetEntityList();
     ViewBag.GenderMaster  = _genderMasterRepository.GetEntityList();
     ViewBag.BloodGroup    = _bloodGroupMasterRepository.GetEntities();
     ViewBag.Caste         = _casteRepository.GetEntities();
     ViewBag.Religion      = _religionMasterRepository.GetEntityList();
     if (id == 0)
     {
         return(View());
     }
     else
     {
         var result = _studentMasterRepository.GetEntities().Where(item => item.Id == id).ToList();
         return(View(result.FirstOrDefault()));
     }
 }
        public ActionResult GetSectionList()
        {
            var result = _sectionMasterRepository.GetEntityList();

            return(PartialView("~/Views/Shared/SectionMaster/_sectionMasterListPartial.cshtml", result));
        }