public bool CheckIfInferAvail( ) { if (info == null) { this.info = new Group_attribs(this.group_id); } return(info.InfAvail()); }
public static Worker GetRightObgById(int id, ApplicationContext db) { Worker worker = new Worker(id, db); Group_attribs info = new Group_attribs(worker.group_id); if (info.InfAvail() == false) { return(new WorkerWithoutInf(worker, info)); } else { return(new WorkerWithInf(worker, info)); } }