Esempio n. 1
0
        //A method to get a worker while within the job class
        public Worker FindWorker(string UserName)
        {
            Worker thisWorker = new MrFixItContext().Workers.FirstOrDefault(users => users.UserName == UserName);

            return(thisWorker);
        }
Esempio n. 2
0
 public Worker FindWorker(string UserName)
 {
     Worker thisWorker = new MrFixItContext().Workers.FirstOrDefault(i => i.UserName == UserName);
     return thisWorker;
 }