This commit is contained in:
Hamid Reza Mohammadi 2021-05-06 13:49:38 +04:30
parent 0d6958b55a
commit bfe74f9453

View File

@ -588,7 +588,12 @@ namespace RMuseum.Services.Implementation
var userRes = await _appUserService.GetUserInformation(userId);
content = content.ToPersianNumbers().ApplyCorrectYeKe();
if(string.IsNullOrEmpty(userRes.Result.NickName))
{
return new RServiceResult<GanjoorCommentSummaryViewModel>(null, "لطفاً با مراجعه به پیشخان کاربری (دکمهٔ گوشهٔ پایین سمت راست) «نام مستعار» خود را مشخص کنید و سپس اقدام به ارسال حاشیه بفرمایید.");
}
content = content.ApplyCorrectYeKe();
GanjoorComment comment = new GanjoorComment()
{
@ -662,6 +667,8 @@ namespace RMuseum.Services.Implementation
return new RServiceResult<bool>(false); //not found
}
htmlComment = htmlComment.ApplyCorrectYeKe();
comment.HtmlComment = htmlComment;
_context.GanjoorComments.Update(comment);