Beispiel #1
0
        public ActionResult FeePaymentPopUp(string AppNo)
        {
            PTAFeePaymentViewModel model = feeCollectionService.GetFeeDetails(AppNo);

            model.CandidateName = Session["UserName"].ToString();
            return(PartialView("_PayFeeModelPopUp", model));
        }
        public PTAFeePaymentViewModel GetFeeDetails(string AppNo)
        {
            var Data = _context.ptaPilotRegistrationMasters.Where(a => a.ApplicationNo == AppNo && a.IsActive == true).FirstOrDefault();
            PTAFeePaymentViewModel model = new PTAFeePaymentViewModel();

            model.ApplicationNo = Data.ApplicationNo;
            model.SessionName   = Data.SessionMaster.SessionName;
            model.CourseName    = Data.CourseMaster.CourseName;
            model.Email         = Data.Email;
            model.RecieptNo     = "RC#" + Data.RegistrationNo;
            model.Gender        = Data.ptaRegistrationInfoes.FirstOrDefault().ptaGenderMaster.Name;

            return(model);
        }