Exemplo n.º 1
0
        public bool AddFavorite(string title, string snippetId)
        {
            if (AppUserState.IsEmpty())
            {
                return(false);
            }

            using (var snippetBus = new busCodeSnippet())
            {
                return(snippetBus.AddFavorite(title, snippetId, AppUserState.UserId));
            }
        }
Exemplo n.º 2
0
        public bool AddFavorite(string title, string snippetId)
        {
            if (AppUserState.IsEmpty())
                return false;

            using (var snippetBus = new busCodeSnippet())
            {
                return snippetBus.AddFavorite(title, snippetId, AppUserState.UserId);
            }
        }