// GET: Opportunities/Create
 public ActionResult Create()
 {
     ViewBag.CampaignSourceId = new SelectList(campaignSourceService.GetAll(), "Id", "Name");
     ViewBag.CompanyId        = new SelectList(companyService.GetAll(), "Id", "Name");
     ViewBag.ContactId        = new SelectList(contactService.GetAll(), "Id", "FullName");
     ViewBag.LeadSourceId     = new SelectList(leadSourceService.GetAll(), "Id", "Name");
     return(View());
 }
 // GET: Leads/Create
 public ActionResult Create()
 {
     ViewBag.CountryId    = new SelectList(_countryService.GetAll(), "Id", "Name");
     ViewBag.CityId       = new SelectList(_cityService.GetAllByCountryId(Guid.NewGuid()), "Id", "Name");
     ViewBag.RegionId     = new SelectList(_regionService.GetAllByCityId(Guid.NewGuid()), "Id", "Name");
     ViewBag.LeadSourceId = new SelectList(_leadSourceService.GetAll(), "Id", "Name");
     ViewBag.LeadStatusId = new SelectList(_leadStatusService.GetAll(), "Id", "Name");
     ViewBag.SectorId     = new SelectList(_sectorService.GetAll(), "Id", "Name");
     return(View());
 }
 // GET: Contacts/Create
 public ActionResult Create()
 {
     ViewBag.CityId             = new SelectList(cityService.GetAllByCountryId(Guid.NewGuid()), "Id", "Name");
     ViewBag.CompanyId          = new SelectList(companyService.GetAll(), "Id", "Name");
     ViewBag.CountryId          = new SelectList(countryService.GetAll(), "Id", "Name");
     ViewBag.LeadSourceId       = new SelectList(leadSourceService.GetAll(), "Id", "Name");
     ViewBag.OtherCityId        = new SelectList(cityService.GetAll(), "Id", "Name");
     ViewBag.OtherCountryId     = new SelectList(countryService.GetAll(), "Id", "Name");
     ViewBag.OtherRegionId      = new SelectList(regionService.GetAll(), "Id", "Name");
     ViewBag.RegionId           = new SelectList(regionService.GetAllByCityId(Guid.NewGuid()), "Id", "Name");
     ViewBag.ReportsToContactId = new SelectList(reportService.GetAll(), "Id", "Name");
     return(View());
 }
        // GET: LeadSources
        public ActionResult Index()
        {
            var leadSources = Mapper.Map <IEnumerable <LeadSourceViewModel> >(leadSourceService.GetAll());

            return(View(leadSources));
        }