public static AppleDepTableEntity ToAppleDepTableEntity(this AppleDepEntity appleDepEntry) { return(new AppleDepTableEntity() { PartitionKey = appleDepEntry.Serial, RowKey = appleDepEntry.User, Status = appleDepEntry.Status, ProcessedTime = appleDepEntry.ProcessedTime }); }
public async Task <string> InsertSerial(string user, string serial) { string returCode = ""; AppleDepEntity serial_entry = Mappings.PopulateAppleDepEntity(serial, user); TableResult tr = await table.InsertorReplace(Mappings.ToAppleDepTableEntity(serial_entry), tableName); return(returCode); }