Exemplo n.º 1
0
        public Boolean Exist(int id, int idu)
        {
            var a = LS.GetAll();

            foreach (var i in a)
            {
                if (i.IdPost == id && i.IdParticipant == idu)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }

            return(true);
        }