Exemplo n.º 1
0
 public static AppleDepTableEntity ToAppleDepTableEntity(this AppleDepEntity appleDepEntry)
 {
     return(new AppleDepTableEntity()
     {
         PartitionKey = appleDepEntry.Serial,
         RowKey = appleDepEntry.User,
         Status = appleDepEntry.Status,
         ProcessedTime = appleDepEntry.ProcessedTime
     });
 }
Exemplo n.º 2
0
        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);
        }