コード例 #1
0
        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));
        }
コード例 #2
0
        public ActionResult FeeHeadings()
        {
            var             list = SchoolDB.NewFeeHeadings.ToList();
            ClassController obj  = new ClassController();

            list.ForEach(x => x.Class = obj.GetClassName(x.Class));
            return(View(list));
        }
コード例 #3
0
 //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));
     }
 }
コード例 #4
0
 //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));
     }
 }