protected ActionResult RedirectToPage(ICommentResponseInfo response) { TempData["comment-response-info"] = response; var url = string.IsNullOrWhiteSpace(response.RedirectUrl) ? Referrer != null ? Referrer.ToString() : "~/" : response.RedirectUrl; return (Redirect(url + "#comments")); }
public static bool IsSuccess(this ICommentResponseInfo commentResponseInfo) { return(commentResponseInfo != null && commentResponseInfo.Type == CommentResponseType.Success); }