Beispiel #1
0
        public ActionResult StudentRollNo()
        {
            StudnetRollNo      Obj        = new StudnetRollNo();
            List <ClassMaster> _ClassList = new List <ClassMaster>();

            try
            {
                Obj.SectionList = new List <SectionMaster>();
                Obj.ClassList   = BALObj.GetClassList(_OrgnisationID);
            }
            catch { }
            return(View(Obj));
        }
Beispiel #2
0
        public ActionResult StudentRollNo(StudnetRollNo Model)
        {
            int res = 0;

            try
            {
                foreach (var master in Model.StudentList)
                {
                    master.FinancialYear = _Financialyearid;
                    master.SchoolID      = _OrgnisationID;
                    master.Modifiedby    = WebSecurity.CurrentUserName;
                    master.Modifieddate  = DateTime.Now;
                    master.RollNo        = string.IsNullOrEmpty(master.RollNo) ? "0" : master.RollNo;
                    res += CSvc.UpdateStudentDetails(master);
                }
            }
            catch
            {
            }
            TempData[Constants.MessageInfo.SUCCESS] = res + " record(s) updated successfully.";
            return(RedirectToAction("StudentRollNo"));
        }