public ActionResult StudentFeeAllocation(int allocationId, string allocationOn) { TempData["allocationId"] = allocationId; TempData["allocationOn"] = allocationOn; ViewBag.FeeType = new FeeTypeModel().GetFeeTypeModelList(); List <FeeHeadMasterVM> result = _feeHeadTypeRepository.GetEntityList(); var allocatedAmount = _feeAllocationRepository.GetStudentAllocationListById(allocationId); if (allocatedAmount.Count() > 0) { result.ForEach(item => { allocatedAmount.ForEach(allo => { if (item.Id == allo.HeadTypeId) { item.Amount = allo.Amount; item.DiscountAmount = allo.DiscountAmount; item.DiscountPercenatge = allo.DiscountPerc; item.NetAmount = allo.NetAmount; item.FeeType = allo.FeeType; } }); }); } return(View("~/Views/StudentFeeAllocation/_FeeHeadListPartial.cshtml", result)); }
public ActionResult GetFeeHeadTypeList() { var result = _feeHeadTypeRepository.GetEntityList(); return(PartialView("~/Views/FeeHead/_FeeHeadGetList.cshtml", result)); }
public ActionResult StudentDepositPartial() { var result = _feeHeadTypeRepository.GetEntityList(); return(PartialView(result)); }