public ActionResult StudentFeeDetailList() { var list = SchoolDB.StudentFeeDetails.Where(x => x.Session.Contains(SchoolSession)).ToList(); ClassController _class = new ClassController(); list.ForEach(x => x.Class = _class.GetClassName(x.Class)); return(View(list)); }
public ActionResult FeeHeadings() { var list = SchoolDB.NewFeeHeadings.ToList(); ClassController obj = new ClassController(); list.ForEach(x => x.Class = obj.GetClassName(x.Class)); return(View(list)); }
//Class public ActionResult EditFeeDetail(int id) { using (wisdomDBEntities db = new wisdomDBEntities()) { ClassController _class = new ClassController(); StudentFeeDetail SeletedStudentFeeDetail = new StudentFeeDetail(); SeletedStudentFeeDetail = db.StudentFeeDetails.Find(id); SeletedStudentFeeDetail.Class = _class.GetClassName(SeletedStudentFeeDetail.Class); return(View("EditFeeDetail", SeletedStudentFeeDetail)); } }
//EditFeeHeading public ActionResult EditFeeHeading(int id) { using (wisdomDBEntities db = new wisdomDBEntities()) { NewFeeHeading SeletedHeading = new NewFeeHeading(); ClassController _class = new ClassController(); SeletedHeading = db.NewFeeHeadings.Find(id); SeletedHeading.Class = _class.GetClassName(SeletedHeading.Class); return(View("EditFeeHEading", SeletedHeading)); } }