public bool updateOffline(MaintainenceCL offlineStatus) { Maintainence query = (from x in dbcontext.Maintainences select x).FirstOrDefault(); query.isOffline = offlineStatus.isOffline; dbcontext.SaveChanges(); return(query.isOffline); }
public string updateNote(MaintainenceCL homeNote) { Maintainence query = (from x in dbcontext.Maintainences select x).FirstOrDefault(); query.HomeNote = homeNote.homeNote; dbcontext.SaveChanges(); return(query.HomeNote); }
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); }