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; }
public IHttpActionResult UpdateNotificationTemplate([FromBody] webModels.NotificationTemplate notificationTemplate) { _notificationTemplateService.Update(new NotificationTemplate[] { notificationTemplate.ToCoreModel() }); return(Ok()); }