public static coreModels.NotificationTemplate ToCoreModel(this webModels.NotificationTemplate notificationTemplate)
        {
            coreModels.NotificationTemplate retVal = new coreModels.NotificationTemplate();

            retVal.InjectFrom(notificationTemplate);

            return(retVal);
        }
		public static webModels.NotificationTemplate ToWebModel(this coreModels.NotificationTemplate notificationTemplate)
		{
			webModels.NotificationTemplate retVal = new webModels.NotificationTemplate();

			retVal.InjectFrom(notificationTemplate);

			return retVal;
		}
Example #3
0
        public IHttpActionResult UpdateNotificationTemplate([FromBody] webModels.NotificationTemplate notificationTemplate)
        {
            _notificationTemplateService.Update(new NotificationTemplate[] { notificationTemplate.ToCoreModel() });

            return(StatusCode(HttpStatusCode.NoContent));
        }