FT.Model.LawRepository.IsInStage C# (CSharp) Method

IsInStage() public method

public IsInStage ( LawStage stage, int lawid ) : bool
stage LawStage
lawid int
return bool
        public bool IsInStage(LawStage stage, int lawid)
        {
            return (from s in DB.Speeches
                    join d in DB.Deliberations on s.DeliberationId equals d.DeliberationId
                    where d.Number == stage && d.LawId == lawid
                    select s.SpeechId).Any();
        }