public ActionResult Add()
        {
            if (Session["User"] == null)
            {
                return(RedirectToAction("Login", "Home", null));
            }

            ViewBag.Governates    = GovernateService.GetAll();
            ViewBag.Neighborhoods = NeighborhoodService.GetAll();
            ViewBag.Fields        = FieldService.GetAll();
            return(View());
        }
Пример #2
0
 public ActionResult AddStudent()
 {
     ViewBag.Governate = GovernorateService.GetAll();
     ViewBag.Field     = FieldService.GetAll();
     return(View());
 }