public WorkLog GetRejectLog2Delete(int idActualUser, IDriverDB driver) { if (State != WorkState.Rejected) { return(new WorkLog()); } WorkLog rejectLog2Delete = driver.GetLastRejectLog(id); if (idActualUser == rejectLog2Delete.IdUser) { return(rejectLog2Delete); } return(new WorkLog()); }