public async Task <IActionResult> AddMessage(string Message) { try { await QueueClient.AddQueueMessagesAsync(Message); } catch (Exception ex) { logger.LogException("AddMessage", ex, ex.ToString()); throw; } return(Ok()); }
public async Task <IActionResult> GetRecords(string customerType, string customerId) { var customer = new CustomerEntity(); try { customer = await TableClient.getRecords(customerType, customerId); } catch (Exception ex) { logger.LogException("GetRecords", ex, ex.ToString()); throw; } return(Ok(customer)); }