// GET: Admin/Companies/Create public IActionResult Create() { ViewData["CityId"] = new SelectList(cityService.GetAll(), "Id", "Name"); ViewData["CountryId"] = new SelectList(countryService.GetAll(), "Id", "Name"); ViewData["CountyId"] = new SelectList(countyService.GetAll(), "Id", "Name"); ViewData["SectorId"] = new SelectList(sectorService.GetAll(), "Id", "Name"); return(View()); }
// GET: Suppliers/Create public ActionResult Create() { ViewBag.BusinessAreaId = new SelectList(businessAreaService.GetAll(), "Id", "Name"); ViewBag.CityId = new SelectList(cityService.GetAll(), "Id", "Name"); ViewBag.CompanyId = new SelectList(companyService.GetAll(), "Id", "Name"); ViewBag.CountryId = new SelectList(countryService.GetAll(), "Id", "Name"); ViewBag.SectorId = new SelectList(sectorService.GetAll(), "Id", "Name"); return(View()); }
public ActionResult Create() { var company = new Company(); ViewData["CountryId"] = new SelectList(countryService.GetAll(), "Id", "Name"); ViewData["SectorId"] = new SelectList(sectorService.GetAll(), "Id", "Name"); return(View(company)); }
// 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: Companies/Create public ActionResult Create() { ViewBag.CompanyTypeId = new SelectList(companyTypeService.GetAll(), "Id", "Name"); ViewBag.DeliveryCountryId = new SelectList(countryService.GetAll(), "Id", "Name"); ViewBag.DeliveryCityId = new SelectList(cityService.GetAllByCountryId(Guid.NewGuid()), "Id", "Name"); ViewBag.DeliveryRegionId = new SelectList(regionService.GetAllByCityId(Guid.NewGuid()), "Id", "Name"); ViewBag.InvoiceCountryId = new SelectList(countryService.GetAll(), "Id", "Name"); ViewBag.InvoiceCityId = new SelectList(cityService.GetAllByCountryId(Guid.NewGuid()), "Id", "Name"); ViewBag.InvoiceRegionId = new SelectList(regionService.GetAllByCityId(Guid.NewGuid()), "Id", "Name"); ViewBag.MainCompanyId = new SelectList(companyService.GetAll(), "Id", "Name"); ViewBag.SectorId = new SelectList(sectorService.GetAll(), "Id", "Name"); return(View()); }
public async Task <IActionResult> Index() { if (!_securityService.CurrrentUserHasAccessToOrganization(CurrentOrganizationId(), AccessLevel.Read)) { return(Forbid()); } var model = new InsightsViewModel(); model.Applications = await _applicationService.GetAllApplicationsForOrganization(CurrentOrganizationId()); model.Sectors = await _sectorService.GetAll(); return(View(model)); }
public IActionResult Get() { var sectors = sectorService.GetAll(); return(Ok()); }
// GET: Sectors public ActionResult Index() { var sectors = Mapper.Map <IEnumerable <SectorViewModel> >(sectorService.GetAll()); return(View(sectors)); }
private async Task <List <SelectListItem> > GetSectorViewModel(int?sectorId) { var sectors = await _sectorService.GetAll(); return(new SectorViewModel().MapToSelectListItems(sectors, sectorId)); }
// GET: Sectors public async Task <IActionResult> Index() { var sectors = await _sectorService.GetAll(); return(View(new SectorViewModel().MapToEnumerable(sectors))); }
// GET: Admin/Sectors public IActionResult Index() { return(View(sectorService.GetAll())); }