public ActionResult SearchSessionWiseResult(int?SessionId) { FeeMasterCustomModel objModel = new FeeMasterCustomModel(); objBDC = new FeeMasterBusiness(); objModel.SessionId = SessionId; var rs = objBDC.GetFeeMasterListing(objModel); @ViewBag.TotalStudents = rs.ToString().Count(); return(PartialView(rs)); }
// // GET: /FeeMaster/ public ActionResult Index() { SessionMasterModel objSessionModel = new SessionMasterModel(); objBDCCommon = new CommonMasterDataBusiness(); var SessionType = objBDCCommon.GetSessionMaster(); objSessionModel.SessionList = new SelectList(SessionType, "SessionId", "Title"); ViewBag.SessionInfo = objSessionModel.SessionList; FeeMasterCustomModel objModel = new FeeMasterCustomModel(); objBDC = new FeeMasterBusiness(); var rs = objBDC.GetFeeMasterListing(objModel); return(View(rs)); }