Esempio n. 1
0
 public AttributesController()
 {
     this.repo = new DAL.RepositoryJson <Models.Attribute>(@".\Data\attributes.json");
 }
Esempio n. 2
0
        private static void CrudJson()
        {
            IRepository repository = new RepositoryJson();

            MenuCrud(repository);
        }
Esempio n. 3
0
 public Repository(RepositoryJson repository)
 {
     this.Name             = repository.Name;
     this.FullName         = repository.full_name;
     this.Description      = repository.Description;
     this.Private          = repository.Private;
     this.Fork             = repository.Fork;
     this.Url              = repository.Url;
     this.HtmlUrl          = repository.html_url;
     this.ArchiveUrl       = repository.archive_url;
     this.AssigneesUrl     = repository.assignees_url;
     this.BlobsUrl         = repository.blobs_url;
     this.CloneUrl         = repository.clone_url;
     this.CollaboratorsUrl = repository.collaborators_url;
     this.CommentsUrl      = repository.comments_url;
     this.CommitsUrl       = repository.commits_url;
     this.CompareUrl       = repository.compare_url;
     this.ContentsUrl      = repository.contents_url;
     this.ContributorsUrl  = repository.contributors_url;
     this.DeploymentsUrl   = repository.deployments_url;
     this.DownloadsUrl     = repository.downloads_url;
     this.EventsUrl        = repository.events_url;
     this.ForksUrl         = repository.forks_url;
     this.GitCommitsUrl    = repository.git_commits_url;
     this.GitRefsUrl       = repository.git_refs_url;
     this.GitTagsUrl       = repository.git_tags_url;
     this.GitUrl           = repository.git_url;
     this.HooksUrl         = repository.hooks_url;
     this.IssueCommentUrl  = repository.issue_comment_url;
     this.IssueEventsUrl   = repository.issue_events_url;
     this.IssuesUrl        = repository.issues_url;
     this.KeysUrl          = repository.keys_url;
     this.LabelsUrl        = repository.labels_url;
     this.LanguagesUrl     = repository.languages_url;
     this.MergesUrl        = repository.merges_url;
     this.MilestonesUrl    = repository.milestones_url;
     this.MirrorUrl        = repository.mirror_url;
     this.NotificationsUrl = repository.notifications_url;
     this.PullsUrl         = repository.pulls_url;
     this.ReleasesUrl      = repository.releases_url;
     this.SshUrl           = repository.ssh_url;
     this.StargazersUrl    = repository.stargazers_url;
     this.StatusesUrl      = repository.statuses_url;
     this.SubscribersUrl   = repository.subscribers_url;
     this.SubscriptionUrl  = repository.subscription_url;
     this.SvnUrl           = repository.svn_url;
     this.TagsUrl          = repository.tags_url;
     this.TeamsUrl         = repository.teams_url;
     this.TreesUrl         = repository.trees_url;
     this.Homepage         = repository.Homepage;
     this.Language         = repository.Language;
     this.ForksCount       = repository.forks_count;
     this.StargazersCount  = repository.stargazers_count;
     this.WatchersCount    = repository.watchers_count;
     this.Size             = repository.Size;
     this.DefaultBranch    = repository.default_branch;
     this.OpenIssuesCount  = repository.open_issues_count;
     this.HasIssues        = repository.has_issues;
     this.HasWiki          = repository.has_wiki;
     this.HasPages         = repository.has_pages;
     this.HasDownloads     = repository.has_downloads;
     this.PushedAt         = repository.pushed_at;
     this.CreatedAt        = repository.created_at;
     this.UpdatedAt        = repository.updated_at;
 }
 public CategoriesController()
 {
     this.repo = new DAL.RepositoryJson <Category>(@".\Data\categories.json");
 }