Example #1
0
 public IHttpActionResult GetWelcomeMessage()
 {
     try
     {
         var welcomeMessage = _baseDataService.GetWelcomeMessage();
         return(Ok(new { Message = welcomeMessage }));
     }
     catch (Exception ex)
     {
         _log.ErrorFormat("Error in getting welcome message. Error : {0}", ex.Message);
         _log.Error(ex);
         throw;
     }
 }