public void AddOCRJob(OCRJob job) { job.PartitionKey = job.EmailAddress; job.RowKey = job.ID.ToString(); TableOperation insertOperation = TableOperation.Insert(job); table.Execute(insertOperation); }
public void UpdateOCRJob(OCRJob job) { TableOperation insertOperation = TableOperation.Replace(job); table.Execute(insertOperation); }
private static void CreateJobLogEntry(Guid jobID, string originalFileName, string emailAddress) { var jobRecord = new OCRJob { ID = jobID, DateTime = DateTime.UtcNow, OriginalFileName = originalFileName, EmailAddress = emailAddress, }; AzureTables.OCRJobRepository.AddOCRJob(jobRecord); }