示例#1
0
        public bool updateOffline(MaintainenceCL offlineStatus)
        {
            Maintainence query = (from x in dbcontext.Maintainences select x).FirstOrDefault();

            query.isOffline = offlineStatus.isOffline;
            dbcontext.SaveChanges();
            return(query.isOffline);
        }
示例#2
0
        public string updateNote(MaintainenceCL homeNote)
        {
            Maintainence query = (from x in dbcontext.Maintainences select x).FirstOrDefault();

            query.HomeNote = homeNote.homeNote;
            dbcontext.SaveChanges();
            return(query.HomeNote);
        }
示例#3
0
        public MaintainenceCL getStatus()
        {
            Maintainence   query        = (from x in dbcontext.Maintainences select x).FirstOrDefault();
            MaintainenceCL returnStatus = new MaintainenceCL()
            {
                homeNote  = query.HomeNote,
                isOffline = query.isOffline,
            };

            return(returnStatus);
        }