예제 #1
0
        public bool IsAccountContainsThisSolo(string email, Guid soloId)
        {
            SoloQueriesCommands soloCQ = new SoloQueriesCommands();
            AuthQueriesCommands authCQ = new AuthQueriesCommands();
            var account = authCQ.GetAccountByEmail(email.ToLower());

            if (account == null)
            {
                return(false);
            }
            var solos = soloCQ.GetAllSolosOf(account);

            if (solos.Count > 0)
            {
                if (solos.Any(rec => rec.SingleTrackDetail.Id == soloId))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
        public List <SoloTrackMaster> GetAllTheSolosOf(string email)
        {
            AuthQueriesCommands AuthCQ = new AuthQueriesCommands();
            SoloQueriesCommands soloCQ = new SoloQueriesCommands();

            return(soloCQ.GetAllSolosOf(AuthCQ.GetAccountByEmail(email)));
        }
예제 #3
0
        public int UpdateStoreSubmissionStatusForSoloTrack(Guid trackId, int statusCode)
        {
            SoloQueriesCommands epCQ = new SoloQueriesCommands();

            if (epCQ.UpdateStoreSubmissionStatus(trackId, statusCode) == 1)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }
예제 #4
0
        public List <SoloTrackMaster> GetAllSolosWithTracks()
        {
            SoloQueriesCommands soloCQ = new SoloQueriesCommands();

            return(soloCQ.GetAllSolosWithTrackDetail());
        }