Exemplo n.º 1
0
        public async Task <ActionResult> Index()
        {
            var sectorList = await _sectorClient.GetAllAsync();

            var companyProfileList = await _companyClient.GetAllCompanyProfiles();

            var activeFairList = await _fairClient.GetAllFairs();

            var interviewList = await _interviewClient.GetAllAsync();

            var salonList = new List <SalonDTO>();

            foreach (var activeFair in activeFairList)
            {
                salonList.AddRange(activeFair.Salons);
            }

            InterviewViewModel vm = new InterviewViewModel()
            {
                Sectors         = sectorList,
                CompanyProfiles = companyProfileList,
                Fairs           = activeFairList,
                Salons          = salonList,
                Interviews      = interviewList
            };

            return(View(vm));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Index()
        {
            var fairList = await _fairClient.GetAllFairs();

            var sectorList = await _sectorClient.GetAllAsync();

            FairViewModel vm = new FairViewModel()
            {
                Fairs   = fairList,
                Sectors = sectorList
            };

            return(View(vm));
        }
Exemplo n.º 3
0
        public async Task <ActionResult> Index()
        {
            var companyList = await _companyClient.GetAllCompanies();

            var companyProfileList = await _companyClient.GetAllCompanyProfiles();

            var sectorList = await _sectorClient.GetAllAsync();

            CompanyViewModel vm = new CompanyViewModel()
            {
                Companies       = companyList,
                CompanyProfiles = companyProfileList,
                Sectors         = sectorList
            };

            return(View(vm));
        }