//
        // GET: /FeeMaster/Create
        public ActionResult Create(int id = 0)
        {
            ClassMasterModel   objClassModel   = new ClassMasterModel();
            SessionMasterModel objSessionModel = new SessionMasterModel();

            objBDCCommon = new CommonMasterDataBusiness();

            var SessionType = objBDCCommon.GetSessionMaster();

            objSessionModel.SessionList = new SelectList(SessionType, "SessionId", "Title");
            ViewBag.SessionInfo         = objSessionModel.SessionList;

            var ClassType = objBDCCommon.GetClassMaster(Convert.ToInt32(Session[CommonStrings.DefaultSession]));

            objClassModel.ClassList = new SelectList(ClassType, "ClassId", "Title");
            ViewBag.ClassInfo       = objClassModel.ClassList;

            FeeMasterCustomModel objModel = new FeeMasterCustomModel();

            if (id != 0)
            {
                objBDC   = new FeeMasterBusiness();
                objModel = objBDC.GetById(id);
            }

            return(View(objModel));
        }
        //
        // GET: /FeeMaster/Details/5
        public ActionResult Details(int id)
        {
            if (id != 0)
            {
                objBDC = new FeeMasterBusiness();
                var rs = objBDC.GetById(id);

                return(View(rs));
            }
            else
            {
                return(View());
            }
        }
        //
        // GET: /FeeMaster/Edit/5
        public ActionResult Edit(int id)
        {
            if (id != 0)
            {
                ClassMasterModel objModel = new ClassMasterModel();
                objBDCCommon = new CommonMasterDataBusiness();

                var ClassType = objBDCCommon.GetClassMaster(Convert.ToInt32(Session[CommonStrings.DefaultSession]));
                objModel.ClassList = new SelectList(ClassType, "ClassId", "Title");
                ViewBag.ClassInfo  = objModel.ClassList;

                objBDC = new FeeMasterBusiness();
                var rs = objBDC.GetById(id);

                return(View(rs));
            }
            else
            {
                return(View());
            }
        }