public static async Task SaveNotificationToDBAsync(int rspHttpCode, string MessageId, Notification rspNotification, string AppIdUri, string ClientUrl, string BearerToken, bool Success) { var DBNotification = new DBNotification { MessageId = MessageId, HttpCode = rspHttpCode, AppIdUri = AppIdUri, ClientUrl = ClientUrl, BearerToken = string.Empty, Success = Success, Notification = rspNotification, Timestamp = DateTime.UtcNow }; var documentDbProvider = new DocumentDBProvider(); try { await documentDbProvider.CreateNotificationAsync(DBNotification); } catch (Exception) { throw; } }