Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }