Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. public async Task<IHttpActionResult> SendNotificationAsync([FromBody] string message)
  2.         {          
  3.             HttpConfiguration config = this.Configuration;
  4.             try
  5.             {
  6.                 await SendNotification(message, null);
  7.             }
  8.             catch(Exception ex)
  9.             {
  10.                 config.Services.GetTraceWriter().Error(
  11.                   ex.Message , null, "Push.SendAsync Error");
  12.                 return BadRequest(ex.Message);
  13.             }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement