internal static bool HasDefaultTemplateConstructor(EmailModelEntity emailModelEntity) { EmailModelInfo info = registeredModels.GetOrThrow(emailModelEntity.ToType()); return(info.DefaultTemplateConstructor != null); }
public static IEmailModel CreateModel(EmailModelEntity model, ModifiableEntity?entity) { return((IEmailModel)EmailModelLogic.GetEntityConstructor(model.ToType()).Invoke(new[] { entity })); }
public string GetConstructorType([Required, FromBody] EmailModelEntity model) { var type = EmailModelLogic.GetEntityType(model.ToType()); return(ReflectionServer.GetTypeName(type)); }