public static void Initialize()
 {
     CompiledTemplateEngine.Add <string>("Mails.EmailConfirmation", GetStringTemplate("Limbs.Web.Common.Mail.Templates.EmailConfirmation.cshtml"));
     CompiledTemplateEngine.Add <string>("Mails.EmailPasswordChange", GetStringTemplate("Limbs.Web.Common.Mail.Templates.EmailPasswordChange.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderAcceptedToAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderAcceptedToAmbassador.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderAcceptedToRequestor", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderAcceptedToRequestor.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderReadyToAdmin", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderReadyToAdmin.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderReadyToAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderReadyToAmbassador.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderReadyToRequestor", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderReadyToRequestor.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderNewAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderNewAmbassador.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderNewAmbassadorToOldAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderNewAmbassadorToOldAmbassador.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderDeliveryInformation", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderDeliveryInformation.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.OrderProofOfDeliveryInfo", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderProofOfDeliveryInfo.cshtml"));
     CompiledTemplateEngine.Add <OrderModel>("Mails.Generic", GetStringTemplate("Limbs.Web.Common.Mail.Templates.Generic.cshtml"));
 }
Пример #2
0
        public static void Initialize()
        {
            CompiledTemplateEngine.Add <string>("Mails.EmailConfirmation", GetStringTemplate("Limbs.Web.Common.Mail.Templates.EmailConfirmation.cshtml"));
            CompiledTemplateEngine.Add <string>("Mails.EmailPasswordChange", GetStringTemplate("Limbs.Web.Common.Mail.Templates.EmailPasswordChange.cshtml"));
            CompiledTemplateEngine.Add <string>("Mails.EmailPasswordChangeImport", GetStringTemplate("Limbs.Web.Common.Mail.Templates.EmailPasswordChangeImport.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderAcceptedToAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderAcceptedToAmbassador.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderAcceptedToRequestor", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderAcceptedToRequestor.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderReadyToAdmin", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderReadyToAdmin.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderReadyToAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderReadyToAmbassador.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderReadyToRequestor", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderReadyToRequestor.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderNewAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderNewAmbassador.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderNewAmbassadorToOldAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderNewAmbassadorToOldAmbassador.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderDeliveryInformation", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderDeliveryInformation.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderProofOfDeliveryInfoToRequestor", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderProofOfDeliveryInfoToRequestor.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.OrderProofOfDeliveryInfoToAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.OrderProofOfDeliveryInfoToAmbassador.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.NewOrderRequestor", GetStringTemplate("Limbs.Web.Common.Mail.Templates.NewOrderRequestor.cshtml"));
            CompiledTemplateEngine.Add <OrderModel>("Mails.Generic", GetStringTemplate("Limbs.Web.Common.Mail.Templates.Generic.cshtml"));
            CompiledTemplateEngine.Add <AmbassadorModel>("Mails.NewAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.NewAmbassador.cshtml"));
            CompiledTemplateEngine.Add <NotifyUserChat>("Mails.NotifyUserMessage", GetStringTemplate("Limbs.Web.Common.Mail.Templates.NotifyUserMessage.cshtml"));

            CompiledTemplateEngine.Add <OrderModel>("Mails.NoDesign", GetStringTemplate("Limbs.Web.Common.Mail.Templates.NoDesign.cshtml"));
            CompiledTemplateEngine.Add <WrongInfoEmail>("Mails.IncorrectInfoComment", GetStringTemplate("Limbs.Web.Common.Mail.Templates.IncorrectInfoComment.cshtml"));
            CompiledTemplateEngine.Add <WrongInfoEmail>("Mails.IncorrectPhotoAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.IncorrectPhotoAmbassador.cshtml"));
            CompiledTemplateEngine.Add <WrongInfoEmail>("Mails.IncorrectPhotoAmbassadorExtraComment", GetStringTemplate("Limbs.Web.Common.Mail.Templates.IncorrectPhotoAmbassadorExtraComment.cshtml"));

            CompiledTemplateEngine.Add <CovidInfoEmail>("Mails.NewOrderCovid", GetStringTemplate("Limbs.Web.Common.Mail.Templates.NewOrderCovid.cshtml"));
            CompiledTemplateEngine.Add <CovidUpdateEmail>("Mails.UpdateEmailOrderCovid", GetStringTemplate("Limbs.Web.Common.Mail.Templates.UpdateEmailOrderCovid.cshtml"));

            CompiledTemplateEngine.Add <CovidSaveQuantityOrderEmail>("Mails.SaveQuantityOrderCovid", GetStringTemplate("Limbs.Web.Common.Mail.Templates.SaveQuantityOrderCovid.cshtml"));
            CompiledTemplateEngine.Add <CovidSaveQuantityOrderEmail>("Mails.SaveQuantityOrderCovidOnUpdate", GetStringTemplate("Limbs.Web.Common.Mail.Templates.SaveQuantityOrderCovidOnUpdate.cshtml"));

            CompiledTemplateEngine.Add <CovidSaveQuantityOrderEmailAmbassador>("Mails.SaveQuantityOrderCovidAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.SaveQuantityOrderCovidAmbassador.cshtml"));
            CompiledTemplateEngine.Add <CovidSaveQuantityOrderEmailAmbassador>("Mails.SaveQuantityOrderCovidAmbassadorOnUpdate", GetStringTemplate("Limbs.Web.Common.Mail.Templates.SaveQuantityOrderCovidAmbassadorOnUpdate.cshtml"));

            CompiledTemplateEngine.Add <FollowUpModel>("Mails.FollowUpAmbassador", GetStringTemplate("Limbs.Web.Common.Mail.Templates.FollowUpAmbassador.cshtml"));
        }