예제 #1
0
 // 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());
 }
예제 #2
0
 // 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());
 }
예제 #3
0
        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));
        }
예제 #4
0
 // 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());
 }
예제 #5
0
        // 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());
        }
예제 #6
0
        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));
        }
예제 #7
0
        public IActionResult Get()
        {
            var sectors = sectorService.GetAll();

            return(Ok());
        }
예제 #8
0
        // GET: Sectors
        public ActionResult Index()
        {
            var sectors = Mapper.Map <IEnumerable <SectorViewModel> >(sectorService.GetAll());

            return(View(sectors));
        }
예제 #9
0
        private async Task <List <SelectListItem> > GetSectorViewModel(int?sectorId)
        {
            var sectors = await _sectorService.GetAll();

            return(new SectorViewModel().MapToSelectListItems(sectors, sectorId));
        }
예제 #10
0
        // GET: Sectors
        public async Task <IActionResult> Index()
        {
            var sectors = await _sectorService.GetAll();

            return(View(new SectorViewModel().MapToEnumerable(sectors)));
        }
예제 #11
0
 // GET: Admin/Sectors
 public IActionResult Index()
 {
     return(View(sectorService.GetAll()));
 }