public IHttpActionResult GetNotificationTemplate(string type, string objectId, string objectTypeId, string language) { NotificationTemplate retVal = new NotificationTemplate(); var notification = _notificationManager.GetNewNotification(type, objectId, objectTypeId, language); if (notification != null) { retVal = notification.NotificationTemplate; } return Ok(retVal.ToWebModel()); }
public IHttpActionResult GetNotificationTemplate(string type, string objectId, string objectTypeId, string language) { NotificationTemplate retVal = new NotificationTemplate(); var notification = _notificationManager.GetNewNotification(type, objectId, objectTypeId, language); if (notification != null) { retVal = notification.NotificationTemplate; } return(Ok(retVal.ToWebModel())); }
public IHttpActionResult GetNotificationTemplate(string type, string objectId, string objectTypeId, string language) { NotificationTemplate retVal = new NotificationTemplate(); var criteria = new GetNotificationCriteria() { Type = type, ObjectId = objectId, ObjectTypeId = objectTypeId, Language = language }; var notification = _notificationManager.GetNewNotification(criteria); if (notification != null) { retVal = notification.NotificationTemplate; } return Ok(retVal.ToWebModel()); }