Set Event Description as EMail Body. Fix: Typo in Subject Line
This commit is contained in:
@ -81,8 +81,8 @@ namespace SZUAbsolventenverein.Module.EventRegistration.Services
|
|||||||
Response = _ResponseRepository.UpdateResponse(Response);
|
Response = _ResponseRepository.UpdateResponse(Response);
|
||||||
|
|
||||||
Event currentEvent = _EventRepository.GetEvent(Response.EventRegistrationId);
|
Event currentEvent = _EventRepository.GetEvent(Response.EventRegistrationId);
|
||||||
string subject = Response.ResponseType ? $"Du bist erfolgreich für '{currentEvent.Name}' Registriert worden." : $"Du hast erfolgreich für '{currentEvent.Name}' abgesagt.";
|
string subject = Response.ResponseType ? $"Du bist erfolgreich für '{currentEvent.Name}' registriert." : $"Du hast erfolgreich für '{currentEvent.Name}' abgesagt.";
|
||||||
string body = "Hier kann man die Infos des Events hineinpacken (HTML ist erlaubt)";
|
string body = currentEvent.Description;
|
||||||
SendEventResponseNotification(subject, body);
|
SendEventResponseNotification(subject, body);
|
||||||
|
|
||||||
_logger.Log(LogLevel.Information, this, LogFunction.Create, "EventRegistration Added {NewEvent}", Response);
|
_logger.Log(LogLevel.Information, this, LogFunction.Create, "EventRegistration Added {NewEvent}", Response);
|
||||||
|
|||||||
Reference in New Issue
Block a user