예제 #1
0
        internal static bool HasDefaultTemplateConstructor(EmailModelEntity emailModelEntity)
        {
            EmailModelInfo info = registeredModels.GetOrThrow(emailModelEntity.ToType());

            return(info.DefaultTemplateConstructor != null);
        }
예제 #2
0
 public static IEmailModel CreateModel(EmailModelEntity model, ModifiableEntity?entity)
 {
     return((IEmailModel)EmailModelLogic.GetEntityConstructor(model.ToType()).Invoke(new[] { entity }));
 }
예제 #3
0
        public string GetConstructorType([Required, FromBody] EmailModelEntity model)
        {
            var type = EmailModelLogic.GetEntityType(model.ToType());

            return(ReflectionServer.GetTypeName(type));
        }