示例#1
0
        // GET: Location
        public ActionResult Index()
        {
            LocationVm locationVm = new LocationVm();

            locationVm.Projects = repository.GetProjects();
            locationVm.Cities   = repository.GetAllCities();
            return(View("AddProject", locationVm));
        }
示例#2
0
        public ActionResult create_leads()
        {
            ViewBag.Message = "Your application description page.";
            LocationVm locationVm = new LocationVm();

            locationVm.Cities   = repository.GetAllCities();
            locationVm.Projects = repository.GetProjects();
            locationVm.Phase    = repository.GetPhases();
            locationVm.Blocks   = repository.GetBlocks();
            return(View(locationVm));
        }