public DeviceNotification add(DeviceNotification deviceNotification) { logger.Info("Add DeviceNotification: "); try { if (deviceNotification == null) { throw new ArgumentNullException("deviceNotification"); } context.AddDeviceNotification(deviceNotification); logger.Info("End Add deviceNotification: "); return(deviceNotification); } catch (Exception ex) { logger.Error("Error in Add deviceNotification " + ex.Message); return(null); } }