public InterestMasterDto GetInterestDetailsDto(int id) { InterestService _interestService = new InterestService(); InterestMasterDto interestMasterDto = _interestService.GetByIDExt(id); return(interestMasterDto); }
public JsonResult GetInterestDetails(int id) { InterestService _interestService = new InterestService(); InterestMasterDto interestMasterDto = _interestService.GetByIDExt(id); return(Json(new { result = interestMasterDto })); }
//public JsonResult GetGroupName(int id) //{ // GroupLoanDisbursementDto groupLoanDisbursementDto = _groupLoanDisbursementService.GetByID(id); // return Json(new // { // GroupName = groupLoanDisbursementDto.GroupName,LoanCode = groupLoanDisbursementDto.LoanCode, // LoanApplicationDate = groupLoanDisbursementDto.LoanApplicationDate,LoanPurpose = groupLoanDisbursementDto.LoanPurpose, // LoanAmountApplied = groupLoanDisbursementDto.LoanAmountApplied, // NoOfInstallments = groupLoanDisbursementDto.NoOfInstallments, // Mode = groupLoanDisbursementDto.Mode // }); //} public InterestMasterDto GetInterestDetailsDto(int id) { InterestMasterDto interestDto = _interestService.GetByIDExt(id); // InterestRatesDto interestRateDto = interestDto.InterestRates.Find(l => l.FromDate < DateTime.Now && DateTime.Now < l.ToDate); //InterestRatesDto interestRateDto = interestDto; //if (interestRateDto != null && interestRateDto.ROI > 0) //{ // interestDto.InterestRate = interestRateDto.ROI; //} //if (interestRateDto != null && interestRateDto.PenalROI > 0) //{ // interestDto.PenalROI = interestRateDto.PenalROI; //} //if (interestRateDto != null && interestRateDto.IntrestRateID > 0) //{ // interestDto.InterestRateID = interestRateDto.IntrestRateID; //} return(interestDto); }