public HttpResponse All() { var allPublicRepositories = repositoriesService.GetAllPublicRepositories(); if (!IsUserSignedIn()) { return(View(allPublicRepositories)); } var userPrivateAndAllOtherRepositories = repositoriesService.GetUserPrivateAndOtherRepositories(GetUserId()); return(View(userPrivateAndAllOtherRepositories)); }
public HttpResponse All() { var repositories = repositoriesService.GetAllPublicRepositories(); return(this.View(repositories)); }