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());
        }
Ejemplo n.º 2
0
        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()));
        }
Ejemplo n.º 3
0
		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());
		}