예제 #1
0
        private static void PhasesSample()
        {
            var phases   = taskfly.GetTaskPhases();
            var newPhase = new TaskPhases()
            {
                Description = "Phase Inserted"
            };
            int newId = taskfly.AddPhase(newPhase);

            newPhase.Id          = newId;
            newPhase.Description = "Phase Changed";
            taskfly.ChangePhase(newPhase);
            taskfly.DeletePhase(newId);
        }
예제 #2
0
        private static async Task PhasesSample()
        {
            var boards = await taskfly.GetBoards();

            var phases = await taskfly.GetTaskPhases(boards.First().Id);

            var newPhase = new TaskPhases()
            {
                Description = "Phase Inserted"
            };
            int newId = await taskfly.AddPhase(newPhase);

            newPhase.Id          = newId;
            newPhase.Description = "Phase Changed";
            await taskfly.ChangePhase(newPhase);

            await taskfly.DeletePhase(newId);
        }