public object GETSTUDENT(GETSTUDENTPARAM OBJ)
        {
            try
            {
                SchoolMainContext db = new ConcreateContext().GetContext(OBJ.USERID, OBJ.PASSWORD);
                if (db == null)
                {
                    return(new STUDENTLISTRESULT()
                    {
                        IsSuccess = false, StudentResult = new InvalidUser()
                        {
                            IsSuccess = false, Result = "Invalid User"
                        }
                    });
                }
                var getstudent = db.VIEWGETSTUDENTATTs.Where(r => r.DIVISIONID == OBJ.DIVISIONID).ToList();

                if (getstudent.Count() == 0)
                {
                    return new Results
                           {
                               IsSuccess = false,
                               Message   = new InvalidUser()
                               {
                                   IsSuccess = false, Result = "Student Not Found"
                               }
                           }
                }
                ;


                else
                {
                    //return getstudent.OrderBy(r => r.ROLL_NO).ToList();

                    return new STUDENTLISTRESULT()
                           {
                               IsSuccess = true, StudentResult = getstudent.OrderBy(r => r.ROLL_NO).ToList()
                           }
                };


                //var attendance = db.VIEWATTENDANCEs.
                //                    Where(r => r.ATTEDANCEDATE == DATE && r.DISPLAY == 1 )
                //                    .FirstOrDefault();
                //if (attendance == null)
                //    return new Error() { IsError = true, Message = "ATTENDANCE IS NOT AVAILABLE." };
                //else
                //    return attendance;
            }
            catch (Exception ex)
            {
                return(new Results
                {
                    IsSuccess = false,
                    Message = ex.Message
                });
            }
        }
        public object ATTENDANCESTUDENT([FromBody] GETSTUDENTPARAM OBJ)
        {
            GETSTUDENTATTBL GETOBJ           = new GETSTUDENTATTBL();
            var             GETSTUDENTRESULT = GETOBJ.GETSTUDENT(OBJ);

            return(GETSTUDENTRESULT);
            //return new STUDENTLISTRESULT() { IsSuccess = true, StudentResult = GETOBJ.GETSTUDENT(OBJ) };
        }