public ActionResult FindallStudentResults() { ViewBag.session = sessionservice.getsession().ToList(); ViewBag.section = sectionservice.getsection().ToList(); ViewBag.termname = termservice.getTerm().ToList(); ViewBag.getclass = classservice.getclasses().ToList(); ViewBag.subject = Subjectservice.getSubjects().ToList(); return(View()); }
// GET: Recordhead public ActionResult Index() { ViewBag.session = sessionservice.getsession().ToList(); ViewBag.section = sectionservice.getsection().ToList(); ViewBag.termname = termservice.getTerm().ToList(); ViewBag.getclass = classservice.getclasses().ToList(); ViewBag.branchlist = branchservice.getbranch().ToList(); ViewBag.catlist = categoryservice.getCategory().ToList(); ViewBag.programall = programdegreesservice.getProgramdegree().ToList(); ViewBag.head = subHead3Codeservice.getSubHead3Code().ToList(); ViewBag.headv = FeeVoucherTypeservice.getFeeVoucherType().ToList(); return(View()); }
public ActionResult listingsession() { Sessionservice sessionservice = new Sessionservice(); var Listsession = sessionservice.getsession(); return(View(Listsession)); }
//public ActionResult Assignbranch(string id) //{ // Branchservice branchservice = new Branchservice(); // Studentservice studentservice = new Studentservice(); // //var emp = studentservice.getstudent().Where(x => x.RollNo == id).SingleOrDefault(); // ViewBag.getclass = Classservice.getclasses().ToList(); // ViewBag.branchlist = branchservice.getbranch().ToList(); // return View(emp); //} //[HttpPost] //public ActionResult Assignbranch(FormCollection fc,string id) //{ // StudentBranchMapping studentBranchMapping = new StudentBranchMapping(); // var classesid= (fc["cboclass"]); // studentBranchMapping.BranchID=Convert.ToInt32((fc["cboBracnh"])); // studentBranchMapping.StudentID = id; // StudentBranchMappingBranchMappingservice studentBranchMappingBranchMappingservice = new StudentBranchMappingBranchMappingservice(); // studentBranchMappingBranchMappingservice.saveStudentBranchMapping(studentBranchMapping); // return RedirectToAction("AssignClass",new {classid=classesid , id = studentBranchMapping.StudentID }); //} public ActionResult AssignClass(string studentroll, int id) { var emp = studentservice.getstudent().Where(x => x.ID == id).SingleOrDefault(); ViewBag.session = sessionservice.getsession().ToList(); ViewBag.section = sectionservice.getsection().ToList(); ViewBag.termname = termservice.getTerm().ToList(); ViewBag.getclass = Classservice.getclasses().ToList(); ViewBag.branchlist = branchservice.getbranch().ToList(); ViewBag.catlist = categoryservice.getCategory().ToList(); ViewBag.program = programdegreesservice.getProgramdegree().ToList(); return(View(emp)); }
public ActionResult FeeScheduleStructuresList() { var model = from c in FeeScheduleStructureservice.getFeeScheduleStructure() join sec in sectionservice.getsection() on c.FVSectionCode equals sec.id join Session in sessionservice.getsession() on c.FVSessionCode equals Session.ID join classes in classservice.getclasses() on c.FVClassCode equals classes.ID join C in categoryservice.getCategory() on c.FVCategoryCode equals C.id join b in branchservice.getbranch() on c.FVBranchCode equals b.ID join t in termservice.getTerm() on c.FVTermCode equals t.id select new StudentDisplayVM { term = t, section = sec, session = Session, Classes = classes, Category = C, FeeScheduleStructure = c, Branch = b, }; return(View(model)); }