public HttpResponse All()
        {
            var allPublicRepositories = repositoriesService.GetAllPublicRepositories();

            if (!IsUserSignedIn())
            {
                return(View(allPublicRepositories));
            }

            var userPrivateAndAllOtherRepositories = repositoriesService.GetUserPrivateAndOtherRepositories(GetUserId());

            return(View(userPrivateAndAllOtherRepositories));
        }
예제 #2
0
        public HttpResponse All()
        {
            var repositories = repositoriesService.GetAllPublicRepositories();

            return(this.View(repositories));
        }