Ejemplo n.º 1
0
        public async Task <ActionResult> CreateStudents(StudentViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            IBLL.IOriginClassManager Manager = new OriginClassManager();
            await Manager.AddStudents(model.DepartmentId, model.ClassId, model.StuId, model.StuName, model.Gender, model.Telephone, model.IDNumber, model.Pwd, model.Major);

            return(Content("添加成功"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> CreateOriginClass(OriginClassViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            IBLL.IOriginClassManager Manager = new OriginClassManager();
            await Manager.AddClass(model.DepartmentId, model.ClassId, model.ClassName, model.MonitorId);

            return(Content("添加成功"));
        }
Ejemplo n.º 3
0
        public async Task <ActionResult> CreateStudents()
        {
            IBLL.IDepart_SpeManager  Mnger          = new Depart_SpeManager();
            List <DepartmentInfoDto> departmentList = await Mnger.GetAllDepartments();

            ViewBag.DepartmentList = departmentList;


            IBLL.IOriginClassManager Mnger2    = new OriginClassManager();
            List <OriginClassDto>    classList = await Mnger2.GetAllOriginClasses();

            ViewBag.classList = classList;
            return(View());
        }