public bool AcceptCheck(DateTime dateOfAccept, IDriverDB driver) { if (State != WorkState.Completed) { return(false); } return(driver.CheckDateOfAccept(dateOfAccept, id)); }