Exemplo n.º 1
0
 public async Task <IActionResult> AddMessage(string Message)
 {
     try
     {
         await QueueClient.AddQueueMessagesAsync(Message);
     }
     catch (Exception ex)
     {
         logger.LogException("AddMessage", ex, ex.ToString());
         throw;
     }
     return(Ok());
 }
Exemplo n.º 2
0
        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));
        }