Example #1
0
        static void CreateRepository()
        {
            Console.Write("Write a name for the repository: ");
            string name = Console.ReadLine();

            Console.Write("Write the direction of the server: ");
            string server = Console.ReadLine();

            CreateRepository action = new CreateRepository()
            {
                Name   = name,
                Server = server
            };

            Repository newRepo = ApiUtils.CreateRepository(action).Result;

            Console.Write(string.Format("Repository {0} successfully created!", newRepo.Name));
        }