Esempio n. 1
0
        public bool IsAccountContainsThisEp(string email, Guid epId)
        {
            EPQueriesCommands   EpCQ   = new EPQueriesCommands();
            AuthQueriesCommands AuthCQ = new AuthQueriesCommands();

            var account = AuthCQ.GetAccountByEmail(email.ToLower());

            if (account == null)
            {
                return(false);
            }

            var Eps = EpCQ.GetAllEpsOf(account);

            if (Eps != null)
            {
                if (Eps.Any(rec => rec.Id == epId))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
        public List <ExtendedPlay> GetAllTheEpsOf(string email)
        {
            AuthQueriesCommands AuthCQ = new AuthQueriesCommands();
            EPQueriesCommands   epCQ   = new EPQueriesCommands();

            return(epCQ.GetAllEpsOf(AuthCQ.GetAccountByEmail(email)));
        }