varmessage=$"Hello! The user '{model.RequestedUser}' has requested {model.Title} but it could not be added. This has been added into the requests queue and will keep retrying";
varuser=string.Empty;
vartitle=string.Empty;
varimage=string.Empty;
if(model.RequestType==RequestType.Movie)
{
user=MovieRequest.RequestedUser.UserAlias;
title=MovieRequest.Title;
image=MovieRequest.PosterPath;
}
else
{
user=TvRequest.RequestedUser.UserAlias;
title=TvRequest.ParentRequest.Title;
image=TvRequest.ParentRequest.PosterPath;
}
varmessage=$"Hello! The user '{user}' has requested {title} but it could not be added. This has been added into the requests queue and will keep retrying";
message.Other.Add("PlainTextBody",$"Hello! The user '{model.RequestedUser}' has requested the {model.RequestType} '{model.Title}'! Please log in to approve this request. Request Date: {model.DateTime:f}");
//message.Other.Add("PlainTextBody", $"Hello! The user '{model.RequestedUser}' has requested the {model.RequestType} '{model.Title}'! Please log in to approve this request. Request Date: {model.DateTime:f}");
$"Hello! The user '{model.RequestedUser}' has requested {model.Title} but it could not be added. This has been added into the requests queue and will keep retrying",
model.ImgSrc);
$"Hello! The user '{user}' has requested {title} but it could not be added. This has been added into the requests queue and will keep retrying",img);
message.Other.Add("PlainTextBody",$"Hello! The user '{model.RequestedUser}' has requested {model.Title} but it could not be added. This has been added into the requests queue and will keep retrying");
//message.Other.Add("PlainTextBody", $"Hello! The user '{model.RequestedUser}' has requested {model.Title} but it could not be added. This has been added into the requests queue and will keep retrying");