Exemple #1
0
        public async Task SaveNewTask(String projectName, String taskName)
        {
            _logger.LogInformation($"Saving Task with name of : {taskName} for {projectName}");

            ProjectTaskEntity newTask = new ProjectTaskEntity
            {
                PartitionKey = projectName,
                RowKey       = taskName,
                TaskName     = taskName
            };

            await _tasksRepository.SaveNewTask(newTask);
        }
        public async Task SaveNewTask(ProjectTaskEntity newTask)
        {
            CloudTable table = await _cloudTableHelper.GetCloudTableByName(_configuration["TasksTableName"]);

            await _cloudTableHelper.InsertEntityAsync <ProjectTaskEntity>(table, newTask);
        }