//turns on/off the lock (id = lockID) public string Brain(int id) { var six = lockDataRepository.Find(id); var five = lockTypeRepository.Get(six.LockTypeID); brainBoxRepository.put(five); Thread.Sleep(five.Delay); brainBoxRepository.set(five); return("string"); }
public LockData Get(int id) { return(lockDataRepository.Find(id)); }