// GET: Location public ActionResult Index() { LocationVm locationVm = new LocationVm(); locationVm.Projects = repository.GetProjects(); locationVm.Cities = repository.GetAllCities(); return(View("AddProject", locationVm)); }
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)); }