public virtual bool IsZadavatel(Uzivatel u) { if (Zadavatel.Compare(u)) { return(true); } if (SubUkoly.Any(x => x.Zadavatel.Compare(u))) { return(true); } return(false); }
public virtual bool IsResitel(Uzivatel u) { return(Resitel.Compare(u) || SubUkoly.Any(subUkol => subUkol.Resitel.Compare(u))); }
public virtual bool IsAtLeastOneDone() { return(SubUkoly.Any(s => s.Deleted == false && s.Status == StatusUkolu.Closed)); }