private async Task <string> IAddToRecordTable(string personid) { // Adds a record of avenger based on personid // Gets relevant fields to make a record string newRecordName = await IEasyTableManager.IAzureManagerInstance.IGetAvengerName(personid); string newSuperName = await IEasyTableManager.IAzureManagerInstance.IGetAvengerSuperName(personid); // Creates a new record AvengerRecordTable newrecord = new AvengerRecordTable { name = newRecordName, supername = newSuperName }; // Pushes new record into easytable await IEasyTableManager.IAzureManagerInstance.IPostAvengerRecord(newrecord); // Returns the Super Hero name of newly added avenger return(newSuperName); }
public async Task IPostAvengerRecord(AvengerRecordTable avengerRecordTable) { // publish a new entry in the record table await this.avengerRecordTable.InsertAsync(avengerRecordTable); }