public override bool UpdateElement(OnlineStudentRegisters oT)
        {
            WebIMICEntities oEntities = ConnectionEntities.getWebIMICOnline(mAcount);

            oEntities.SP_IMIC_RegisterDetail_Update_IsSeen();
            return(true);
        }
        public override List <OnlineStudentRegisters> getElements()
        {
            WebIMICEntities oEntities = ConnectionEntities.getWebIMICOnline(mAcount);
            var             oData     = oEntities.WEB_IMIC_SP_RegisterDetail_GetForEtraining().ToList();
            List <OnlineStudentRegisters> oLisOnlineStudentRegisters;

            if (oData != null)
            {
                oLisOnlineStudentRegisters = new List <OnlineStudentRegisters>();
                Commons oCommons = new Commons(mAcount);
                foreach (var o in oData)
                {
                    OnlineStudentRegisters oOnlineRegister = new OnlineStudentRegisters();
                    oOnlineRegister.FullName         = o.FullName;
                    oOnlineRegister.Phone            = o.Phone;
                    oOnlineRegister.Email            = o.Email;
                    oOnlineRegister.Message          = o.Message;
                    oOnlineRegister.Address          = o.Address;
                    oOnlineRegister.CreatedTime      = (DateTime)o.CreatedTime;
                    oOnlineRegister.RegisterDetailId = o.RegisterDetailId;

                    oLisOnlineStudentRegisters.Add(oOnlineRegister);
                }
            }
            else
            {
                return(null);
            }
            return(oLisOnlineStudentRegisters == null ? null : oLisOnlineStudentRegisters);
        }