Esempio n. 1
0
        public ViewResult CreateEmployment()
        {
            List <Employee>           studentys = _student.GetEmployees().ToList();
            List <Company>            companys  = _manageEmployment.GetCompanies().ToList();
            CreateEmploymentViewModel createEmploymentViewModel = new CreateEmploymentViewModel()
            {
                students  = studentys,
                companies = companys
            };

            return(View(createEmploymentViewModel));
        }
        public ViewResult Index()
        {
            var model      = _employeeReprository.GetEmployees();
            var appUsers   = userManager.Users;
            var appCompany = _employment.GetCompanies();
            HomeIndexViewModel homeIndexViewModel = new HomeIndexViewModel()
            {
                Student   = model.ToList(),
                StudentNo = model.Count(),
                UserNo    = appUsers.Count(),
                VisitorNo = model.Count() + appUsers.Count(),
                CompanyNo = appCompany.Count()
            };

            return(View(homeIndexViewModel));
        }
Esempio n. 3
0
        public ViewResult ListBatch()
        {
            List <Batches>        batches          = _programmes.GetABatch().ToList();
            List <Employee>       studentList      = _students.GetEmployees().ToList();
            List <StudentInBatch> studentbatchList = _programmes.GetAllStudentInBatch().ToList();



            StudentBatchViewModel sbvm = new StudentBatchViewModel
            {
                Batches          = batches,
                Students         = studentList,
                AssignedStudents = studentbatchList
            };

            return(View(sbvm));
        }