Exemple #1
0
        public static async Task SaveTaskAttachements(TaskInfo taskInfo, IConfiguration configuration)
        {
            TaskAttachementsRepository taskAttachementsRepository = new TaskAttachementsRepository(configuration);
            var rowKey = Guid.NewGuid();

            TaskAttachementsEntity taskAttachementsEntity = new TaskAttachementsEntity
            {
                PartitionKey   = PartitionKeyNames.TaskAttachementsDataTable.TaskAttachementsDataPartition,
                RowKey         = rowKey.ToString(),
                AttachementID  = taskInfo.attachementID,
                TaskID         = taskInfo.taskID,
                AttachementURL = taskInfo.attachementURL
            };

            await taskAttachementsRepository.CreateOrUpdateAsync(taskAttachementsEntity);
        }