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());
        }
Exemple #2
0
        // GET: Home
        public ActionResult Neighborhood()
        {
            if (Session["User"] == null)
            {
                return(RedirectToAction("Login", "Home", null));
            }

            var Neighborhoods = NeighborhoodService.GetAll().ToList();

            return(View(Neighborhoods));
        }