public async Task <IActionResult> Create([Bind("GpId,MonthName,Amount,Date")] GovernmentPayment governmentPayment)
        {
            if (ModelState.IsValid)
            {
                _context.Add(governmentPayment);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(governmentPayment));
        }
        public async Task <IActionResult> Create([Bind("ExamId,ExamName")] ExamInfo examInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(examInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(examInfo));
        }
Esempio n. 3
0
        public async Task <IActionResult> Create([Bind("OcId,Date,ElectricityBillMonthName,ElectricityBillAmount,WaterBillMonth,WaterBillAmount,ItBill,FunctionCost,ScienceFairCost,StudyTourCost,PoorFund,SchoolDev,SchoolMaintenance,ServicingCharge,AnyCostName,AnyCostFee")] OtherCostInfo otherCostInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(otherCostInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(otherCostInfo));
        }
        public async Task <IActionResult> Create([Bind("AfId,AdmitCardNo,AdmissionDate,CollegeRoll,Section,ElectiveSubject1,ElectiveSubject2,ElectiveSubject3,FourthSubject,NameOftheStudent,DateOfBirth,Religion,Nationality,Height,Weight,BloodGroup,FathersName,FathersEducationalQualification,FathersOccupation,FathersMobileNo,FatherNid,MothersName,MothersEducationalQualification,MothersOccupation,MothersMobileNo,MotherNid,PresentAddress,PermanentAddress,NameOfGuardian,GuardianAddress,GuardianMobileNo,FathersTotalAnnualincome,JscyearOfTheExam,JscnameOfTheBoard,JscroolNo,JscregistrationNo,Jscsession,JscGpa,JscnameOfInstitution,SscyearOfTheExam,SscnameOfTheBoard,SscroolNo,SscregistrationNo,Sscsession,SscGpa,SscnameOfInstitution,NameOfTheLastSchoolorCollegeAttended")] AdmissionForm admissionForm)
        {
            if (ModelState.IsValid)
            {
                _context.Add(admissionForm);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(admissionForm));
        }
        public async Task <IActionResult> Create([Bind("SsId,StaffId,MonthName,Amount,Date")] StaffSalary staffSalary)
        {
            if (ModelState.IsValid)
            {
                _context.Add(staffSalary);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(staffSalary));
        }
Esempio n. 6
0
        public async Task <IActionResult> Create([Bind("Id,Role")] UserRoles userRoles)
        {
            if (ModelState.IsValid)
            {
                _context.Add(userRoles);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(userRoles));
        }
Esempio n. 7
0
        public async Task <IActionResult> Create([Bind("GradeId,Grade")] GradeInfo gradeInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(gradeInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(gradeInfo));
        }
Esempio n. 8
0
        public async Task <IActionResult> Create([Bind("SpId,StudentId,Date,FormFee,AdmissionFee,ReAdmissionFee,TcCharge,SeasonCharge,CertificateFee,TestimonialFee,WhichMonthFee,MonthFeeAmount,Ct1Fee,Ct2Fee,HalfYearlyFee,FinalYearlyFee,WaterElectricityFee,Tex,DevlopmentFee,BuildingDevFee,LabFee,LibraryFee,ComputerFee,RegistrationFee,CautionMoney,Fine,ReportCardFee,AdmitCardFee,IdCardFee,FormFillUpEFf,FormFillUpJsc,FormFillUpSsc,FormFillUpHsc,ItFee,ScienceDevelopmentFee,CareFee,OtherFeeName,OtherFeeAmount")] StudentPayment studentPayment)
        {
            if (ModelState.IsValid)
            {
                _context.Add(studentPayment);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["StudentId"] = new SelectList(_context.StudentInfo, "StudentId", "StudentName", studentPayment.StudentId);
            return(View(studentPayment));
        }
Esempio n. 9
0
        public async Task <IActionResult> Create([Bind("TeacherId,TeacherName,SubjectId,Email,Cell,Position")] TeacherInfo teacherInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(teacherInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SubjectId"] = new SelectList(_context.SubjectInfo, "SubjectId", "SubjectName", teacherInfo.SubjectId);
            return(View(teacherInfo));
        }
Esempio n. 10
0
        public async Task <IActionResult> Create([Bind("SsId,StaffId,StaffName,WorkingSector,Cell,Email,Address")] StaffInfo staffInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(staffInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SsId"] = new SelectList(_context.StaffSalary, "SsId", "MonthName", staffInfo.SsId);
            return(View(staffInfo));
        }
Esempio n. 11
0
        public async Task <IActionResult> Create([Bind("TsId,TeacherId,MonthName,Amount,Date")] TeacherSalary teacherSalary)
        {
            if (ModelState.IsValid)
            {
                _context.Add(teacherSalary);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["TeacherId"] = new SelectList(_context.TeacherInfo, "TeacherId", "Email", teacherSalary.TeacherId);
            return(View(teacherSalary));
        }
        public async Task <IActionResult> Create([Bind("SectionId,SectionName,ClassId")] SectionInfo sectionInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(sectionInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ClassId"] = new SelectList(_context.ClassInfo, "ClassId", "ClassName", sectionInfo.ClassId);
            return(View(sectionInfo));
        }
        public async Task <IActionResult> Create([Bind("GroupId,GroupName,SectionId")] GroupInfo groupInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(groupInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SectionId"] = new SelectList(_context.SectionInfo, "SectionId", "SectionName", groupInfo.SectionId);
            return(View(groupInfo));
        }
        public async Task <IActionResult> Create([Bind("Hy,StudentId,TeacherId,SubjectId,ExamId,Ct1,Sub,Obj,Practical,Attendence")] HalfYearResult halfYearResult)
        {
            if (ModelState.IsValid)
            {
                _context.Add(halfYearResult);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ExamId"]    = new SelectList(_context.ExamInfo, "ExamId", "ExamName", halfYearResult.ExamId);
            ViewData["StudentId"] = new SelectList(_context.StudentInfo, "StudentId", "StudentName", halfYearResult.StudentId);
            ViewData["SubjectId"] = new SelectList(_context.SubjectInfo, "SubjectId", "SubjectName", halfYearResult.SubjectId);
            ViewData["TeacherId"] = new SelectList(_context.TeacherInfo, "TeacherId", "Email", halfYearResult.TeacherId);
            return(View(halfYearResult));
        }
        public async Task <IActionResult> Create([Bind("StudentId,StudentName,StudentRoll,SectionId,ClassId,ShiftId,GroupId,Year")] StudentInfo studentInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(studentInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ClassId"]   = new SelectList(_context.ClassInfo, "ClassId", "ClassName", studentInfo.ClassId);
            ViewData["GroupId"]   = new SelectList(_context.GroupInfo, "GroupId", "GroupName", studentInfo.GroupId);
            ViewData["SectionId"] = new SelectList(_context.SectionInfo, "SectionId", "SectionName", studentInfo.SectionId);
            ViewData["ShiftId"]   = new SelectList(_context.ShiftInfo, "ShiftId", "ShiftName", studentInfo.ShiftId);
            return(View(studentInfo));
        }
        public async Task <IActionResult> Create([Bind("EtId,StudentId,TeacherId,ClassId,SectionId,SubjectId,Year")] Enrollment enrollment)
        {
            if (ModelState.IsValid)
            {
                _context.Add(enrollment);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ClassId"]   = new SelectList(_context.ClassInfo, "ClassId", "ClassName", enrollment.ClassId);
            ViewData["SectionId"] = new SelectList(_context.SectionInfo, "SectionId", "SectionName", enrollment.SectionId);
            ViewData["StudentId"] = new SelectList(_context.StudentInfo, "StudentId", "StudentName", enrollment.StudentId);
            ViewData["SubjectId"] = new SelectList(_context.SubjectInfo, "SubjectId", "SubjectName", enrollment.SubjectId);
            ViewData["TeacherId"] = new SelectList(_context.TeacherInfo, "TeacherId", "Email", enrollment.TeacherId);
            return(View(enrollment));
        }