// 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()); }
public ActionResult Index() { var leadStatuses = Mapper.Map <IEnumerable <LeadStatusViewModel> >(leadStatusService.GetAll()); return(View(leadStatuses)); }
public async Task <ActionResult <ResponseObject <List <LeadStatusIndexModel> > > > Index() { return(await _LeadStatusService.GetAll()); }