Example #1
0
        public void SaveRepo(DetailsViewModel repo)
        {
            Repo githubRepo = new Repo
            {
                name  = repo.name,
                owner = new Repo.Owner {
                    avatar_url = repo.owner.avatar_url, login = repo.owner.login
                },
                url         = repo.url,
                full_name   = repo.full_name,
                description = repo.description,
                created_at  = repo.created_at,
                git_url     = repo.git_url
            };

            _repoService.Add(githubRepo);
        }